feat: placeholder for v1 subcommands (#135)

* feat: placeholder for v1 subcommands

* chore: more usage comments
This commit is contained in:
William Baker 2021-06-21 16:03:39 -04:00 committed by GitHub
parent 23e73e9146
commit 800e4c2cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

View File

@ -50,6 +50,7 @@ var app = cli.App{
newDashboardsCommand(),
newExportCmd(),
newSecretCommand(),
newV1SubCommand(),
},
}

14
cmd/influx/v1_commands.go Normal file
View 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
View 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"