-
Notifications
You must be signed in to change notification settings - Fork 16
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
[UI] - CLI TYPE - Handle pluralization (aliases) #58
Comments
Thanks!
Do you think it's fine to support them? I mean, people will rely on them and if we decide to remove some of them in future, it can break user's workflow. On other hand in k8s you also have this kind of shortcuts and they are very helpful.
I have few options in mind here: WDYT? |
I believe it's a better experience to support the aliases. But we can still be consistent with the syntax in the docs (meaning always using "registrations" everywhere, and mention the aliases only once). |
This is why i originally wrote that this is debatable, but I think pluralization of types shouldn't be so close to a possible typo (like |
Ok, so I've created a TYPE_ALLOWED setting in #87. I think it's a way to deal with these, and we could add something on top like asking |
gto audit
:gto audit registrations
should give the same output asgto audit registration
(it doesn't, it's just empty, see #57 )
gto add
:Types are free-text here (no assumptions?) so that's debatable, but I think it's worth singularizing them before adding to
artifacts.yaml
otherwise we get this unwanted behavior due to common (somewhat natural) cli usage (There's the order issue as well, see #53), where's it's apparently clear both artifacts should be of typemodel
:The text was updated successfully, but these errors were encountered: