mirror of
https://github.com/digarok/Appy.git
synced 2024-12-02 13:51:33 +00:00
26 lines
609 B
Go
26 lines
609 B
Go
|
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)
|
||
|
}
|