You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
439 B
Go
26 lines
439 B
Go
package portainer
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
countFlagNumbers int
|
|
rangeFlagNumbers []string
|
|
)
|
|
var NumbersCmd = &cobra.Command{
|
|
Use: "numbers",
|
|
Short: "Returns random numbers",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("numbers mode")
|
|
fmt.Println("--count:", countFlagNumbers)
|
|
fmt.Println("--range:", rangeFlagNumbers)
|
|
},
|
|
}
|
|
|
|
func NewPortainerCommand() *cobra.Command {
|
|
return nil
|
|
}
|