test.go 371 B

123456789101112131415161718192021222324
  1. /*
  2. Copyright © 2022 NAME HERE <EMAIL ADDRESS>
  3. */
  4. package cmd
  5. import (
  6. "fmt"
  7. "github.com/spf13/cobra"
  8. )
  9. // testCmd represents the test command
  10. var testCmd = &cobra.Command{
  11. Use: "test",
  12. Short: "A brief description of your command",
  13. Run: func(cmd *cobra.Command, args []string) {
  14. fmt.Println("test called")
  15. },
  16. }
  17. func init() {
  18. RootCmd.AddCommand(testCmd)
  19. }