Appy/cmd/run.go

26 lines
609 B
Go
Raw Normal View History

2021-04-26 12:50:38 +00:00
package cmd
import (
"github.com/digarok/appy/core"
"github.com/spf13/cobra"
)
// runCmd represents the run command
var runCmd = &cobra.Command{
Use: "run",
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) {
core.Run()
},
}
func init() {
rootCmd.AddCommand(runCmd)
}