clever-tools
clever-tools copied to clipboard
Rework the alias behaviour
Right now, aliases are used to select an application among the linked application.
A possible replacement:
- remove
--alias - replace it with
--application, which can be anapp_id, the application name, or an alias Using theapp_idwould allow to disambiguate the linked applications if they have the same name or alias (but the alias would still be the recommended way to disambiguate, as well as being the most convenient)
See #81
poke @judu @urcadox @BlackYoup
Your suggestion looks really good to me. I guess we could sum up the input by whatever-the-link-command-can-take-as-input or an alias.
I'd like to be able to run all clever CLI commands with plain application ID, and as a local (?) shortcut define some aliases. Would maybe be even simpler to just be able to use my organisationID/applicationName as an implicit alias
So the ideal way would be:
You can run every command with
--application <app_id>--application <app name> --organisation <organisation name (or id)>
If you link the application
--application <alias><nothing>(if the application is set as default or is the only one available)
Is this still considered? Would an external contribution make sense?
I don't have any objection.
@hsablonniere can we have your input?
Resuming:
- Make clever link optional and allow appId on all commands:
- Which commands?
- AppId place in a command? For example it could the first argument
- What about orgaId?
https://github.com/CleverCloud/clever-tools/issues/83#issuecomment-303703555
It will be in the next release!