-
Notifications
You must be signed in to change notification settings - Fork 0
/
subcommands.go
47 lines (44 loc) · 952 Bytes
/
subcommands.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2017-2021 Ingram Micro Inc.
package realms
import (
"github.com/ingrammicro/cio/cmd"
"github.com/urfave/cli"
)
// SubCommands returns realms commands
func SubCommands() []cli.Command {
return []cli.Command{
{
Name: "list",
Usage: "Lists all realms of a cloud provider",
Action: cmd.RealmList,
Flags: []cli.Flag{
cli.StringFlag{
Name: "id",
Usage: "Cloud provider id",
},
},
},
{
Name: "show",
Usage: "Shows information about the realm identified by the given id",
Action: cmd.RealmShow,
Flags: []cli.Flag{
cli.StringFlag{
Name: "id",
Usage: "Realm id",
},
},
},
{
Name: "list-node-pool-plans",
Usage: "This action lists the node pool plans offered by the realm identified by the given id",
Action: cmd.RealmNodePoolPlansList,
Flags: []cli.Flag{
cli.StringFlag{
Name: "id",
Usage: "Realm id",
},
},
},
}
}