gime/cmd/stop.go

34 lines
704 B
Go
Raw Normal View History

2022-01-19 18:56:31 +00:00
/*
2022-01-19 21:30:30 +00:00
Copyright © 2022 Brian Buller <brian@bullercodeworks.com>
2022-01-19 18:56:31 +00:00
*/
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// stopCmd represents the stop command
var stopCmd = &cobra.Command{
Use: "stop",
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.`,
2022-01-19 21:30:30 +00:00
RunE: opStop,
2022-01-19 18:56:31 +00:00
}
func init() {
rootCmd.AddCommand(stopCmd)
2022-01-19 21:30:30 +00:00
}
2022-01-19 18:56:31 +00:00
2022-01-19 21:30:30 +00:00
func opStop(cmd *cobra.Command, args []string) error {
fmt.Println("stop called")
return nil
2022-01-19 18:56:31 +00:00
}