Skip to content
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

Merged
merged 9 commits into from
Jan 12, 2023
Merged

Conversation

haardikdharma10
Copy link
Contributor

Description

Adds cli commands for DBaaS.

// DBCmd is the root command for the db subcommand
var DBCmd = &cobra.Command{
Use: "db",
Aliases: []string{"database"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

db should be aliase


// DBCmd is the root command for the db subcommand
var DBCmd = &cobra.Command{
Use: "db",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add database as use

var dbCreateCmd = &cobra.Command{
Use: "create",
Aliases: []string{"new", "add"},
Example: "civo db create <DATABASE-NAME> <DATABASE-SIZE>",
Copy link
Member

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>",
Copy link
Member

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 {
Copy link
Member

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

Copy link
Member

@vishalanarase vishalanarase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented

@vishalanarase vishalanarase merged commit cdd83b9 into civo:master Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants