1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
package servertype
import (
"github.com/spf13/cobra"
"github.com/hetznercloud/cli/internal/hcapi2"
"github.com/hetznercloud/cli/internal/state"
)
func NewCommand(cli *state.State, client hcapi2.Client) *cobra.Command {
cmd := &cobra.Command{
Use: "server-type",
Short: "Manage server types",
Args: cobra.NoArgs,
TraverseChildren: true,
DisableFlagsInUseLine: true,
}
cmd.AddCommand(
ListCmd.CobraCommand(cli.Context, client, cli),
describeCmd.CobraCommand(cli.Context, client, cli),
)
return cmd
}
|