-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use consistent flag for setting auto idle on envs and projects #351
Comments
I'm really against using camel case for flags, from a UX perspective having to switch case when typing out flags is annoying. Edit: also almost every other cli uses kebab case for flags too, so this would be my preference |
😄 Just pointing out the discrepancy - happy for it to be kebab-case instead Most of the project subcommands are still camelCase - should we alias them to kebab to avoid b/c issues? |
The CLI is still not a v1 so we have some give in breaking change introduction. We can certainly double the flags and use stderr to warn about deprecated flags though probably ( Edit: yes it is possible to double flags and mark them deprecated
result
|
ugh - it gets a bit messy though with dual strings in AddProject - so the Also, it looks like we just unmarshal the flags into the patch in updateProject, which isn't going to work if the flags don't match the GraphQL |
Yeah, the
#321 fixes parts of that issue by moving to the newer machinery library instead of the legacy cli structure. This is a solveable problem, and if we have to make some hacks in the |
The only place that auto-idle is used as an option is in the Environment command
lagoon-cli/cmd/environment.go
Line 164 in 146b272
These should all be the same (ie autoIdle) IMO
The text was updated successfully, but these errors were encountered: