import.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. Copyright © 2024 NAME HERE <EMAIL ADDRESS>
  3. */
  4. package cmd
  5. import (
  6. "fmt"
  7. "github.com/spf13/cobra"
  8. )
  9. // importCmd represents the import command
  10. var importCmd = &cobra.Command{
  11. Use: "import",
  12. Short: "Import entities",
  13. Long: `A longer description that spans multiple lines and likely contains examples
  14. and usage of using your command. For example:
  15. Cobra is a CLI library for Go that empowers applications.
  16. This application is a tool to generate the needed files
  17. to quickly create a Cobra application.`,
  18. Run: func(cmd *cobra.Command, args []string) {
  19. fmt.Println("import called")
  20. },
  21. }
  22. func init() {
  23. rootCmd.AddCommand(importCmd)
  24. // Here you will define your flags and configuration settings.
  25. // Cobra supports Persistent Flags which will work for this command
  26. // and all subcommands, e.g.:
  27. // importCmd.PersistentFlags().String("foo", "", "A help for foo")
  28. // Cobra supports local flags which will only run when this command
  29. // is called directly, e.g.:
  30. // importCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
  31. }