-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI commands for DBaaS #278
Conversation
cmd/database/database.go
Outdated
// DBCmd is the root command for the db subcommand | ||
var DBCmd = &cobra.Command{ | ||
Use: "db", | ||
Aliases: []string{"database"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
db should be aliase
cmd/database/database.go
Outdated
|
||
// DBCmd is the root command for the db subcommand | ||
var DBCmd = &cobra.Command{ | ||
Use: "db", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add database
as use
cmd/database/database_create.go
Outdated
var dbCreateCmd = &cobra.Command{ | ||
Use: "create", | ||
Aliases: []string{"new", "add"}, | ||
Example: "civo db create <DATABASE-NAME> <DATABASE-SIZE>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can get size using flag
Use: "delete", | ||
Aliases: []string{"rm", "remove", "destroy"}, | ||
Short: "Delete a database", | ||
Example: "civo db delete <DATABASE-NAME>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete using name or uuid
} | ||
|
||
ow := utility.NewOutputWriter() | ||
for _, db := range databases.Items { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you haven't pushed changes we discussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented
Description
Adds cli commands for DBaaS.