-
Notifications
You must be signed in to change notification settings - Fork 75
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
rewrite backups #157
rewrite backups #157
Conversation
"context" | ||
|
||
"github.com/vultr/vultr-cli/pkg/cli" | ||
|
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.
goimports this please
} | ||
|
||
// Options for backups | ||
type BackupOptions struct { |
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.
rename this to Options
) | ||
|
||
// BackupOptionsInterface ... | ||
type BackupOptionsInterface interface { |
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.
rename this to Interface
|
||
cmd := &cobra.Command{ | ||
Use: "backup", | ||
Aliases: []string{"backups", "backup", "b"}, |
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.
backup
isn't needed here since it's the default use
|
||
// Columns ... | ||
func (b *BackupsPrinter) Columns() map[int][]interface{} { | ||
return map[int][]interface{}{0: {"ID", "DATE CREATED", "NAME", "KEY"}} |
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.
These aren't the right columns?
Description
rewrite of backups resource
Related Issues
Related to #155
Checklist: