feat: placeholder for v1 subcommands (#135)
* feat: placeholder for v1 subcommands * chore: more usage comments
This commit is contained in:
parent
23e73e9146
commit
800e4c2cfb
@ -50,6 +50,7 @@ var app = cli.App{
|
||||
newDashboardsCommand(),
|
||||
newExportCmd(),
|
||||
newSecretCommand(),
|
||||
newV1SubCommand(),
|
||||
},
|
||||
}
|
||||
|
||||
|
14
cmd/influx/v1_commands.go
Normal file
14
cmd/influx/v1_commands.go
Normal file
@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import "github.com/urfave/cli/v2"
|
||||
|
||||
func newV1SubCommand() *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "v1",
|
||||
Usage: "InfluxDB v1 management commands",
|
||||
Subcommands: []*cli.Command{
|
||||
newV1DBRPCmd(),
|
||||
// etc
|
||||
},
|
||||
}
|
||||
}
|
19
cmd/influx/v1_dbrp.go
Normal file
19
cmd/influx/v1_dbrp.go
Normal file
@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import "github.com/urfave/cli/v2"
|
||||
|
||||
func newV1DBRPCmd() *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "dbrp",
|
||||
Usage: "Commands to manage database and retention policy mappings for v1 APIs",
|
||||
Subcommands: []*cli.Command{
|
||||
// newV1DBRPListCmd(),
|
||||
// newV1DBRPCreateCmd(),
|
||||
// newV1DBRPDeleteCmd(),
|
||||
// newV1DBRPUpdateCmd(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// commands will be implemented below, with business logic residing in their
|
||||
// respective client package, like "v1_dbrp"
|
Loading…
x
Reference in New Issue
Block a user