go-yocto/cmd/source.go

36 lines
759 B
Go
Raw Permalink Normal View History

2023-05-13 21:03:52 +08:00
/*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package cmd
import (
"fmt"
"github.com/spf13/cobra"
2023-05-14 12:14:22 +08:00
"github.com/Fishwaldo/go-yocto/cmd/source"
2023-05-13 21:03:52 +08:00
)
2023-05-14 12:14:22 +08:00
// sourceCmd represents the source command
var sourceCmd = &cobra.Command{
Use: "source",
2023-05-13 21:03:52 +08:00
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) {
2023-05-14 12:14:22 +08:00
fmt.Println("source called")
2023-05-13 21:03:52 +08:00
},
}
func init() {
2023-05-14 12:14:22 +08:00
rootCmd.AddCommand(sourceCmd)
sourceCmd.AddCommand(cmdSource.SearchCmd)
2023-05-13 21:03:52 +08:00
2023-05-20 02:43:28 +08:00
2023-05-13 21:03:52 +08:00
}