-
Notifications
You must be signed in to change notification settings - Fork 396
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
Droplet: Add SizeSlug as format flag #1569
base: main
Are you sure you want to change the base?
Conversation
SizeSlug as a format flag was supported but wasn't documented.
Ooop need to update some tests too, one sec |
Tests are failing because it now includes
I can update the tests if this is not considered a breaking change? @andrewsomething |
Adding new columns isn't necessarily a breaking change. For scripting, we should be encouraging usage of the I wonder if there is some more general solution for non-default columns? There are a lot of commands that could benefit. The values shown in the help output come from here: doctl/commands/command_option.go Line 35 in 9282784
It might be as simple as: - c.fmtCols = d.Cols()
+ c.fmtCols = maps.Keys(d.ColMap()) Though we need to check that the change doesn't have any undesired side effects. |
Includes SizeSlug as a format flag in help docs: