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