gime/cmd/mod.go

34 lines
696 B
Go

/*
Copyright © 2022 Brian Buller <brian@bullercodeworks.com>
*/
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// modCmd represents the mod command
var modCmd = &cobra.Command{
Use: "mod",
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.`,
RunE: opMod,
}
func init() {
rootCmd.AddCommand(modCmd)
}
func opMod(cmd *cobra.Command, args []string) error {
fmt.Println("mod called")
return nil
}