clever-tools icon indicating copy to clipboard operation
clever-tools copied to clipboard

Rework the alias behaviour

Open divarvel opened this issue 9 years ago • 8 comments

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 an app_id, the application name, or an alias Using the app_id would 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

divarvel avatar Jul 26 '16 15:07 divarvel

poke @judu @urcadox @BlackYoup

divarvel avatar Jul 26 '16 15:07 divarvel

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.

urcadox avatar Jul 29 '16 13:07 urcadox

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

ndeloof avatar May 24 '17 11:05 ndeloof

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)

divarvel avatar May 24 '17 12:05 divarvel

Is this still considered? Would an external contribution make sense?

clementd-fretlink avatar Jan 30 '19 14:01 clementd-fretlink

I don't have any objection.

@hsablonniere can we have your input?

urcadox avatar Feb 01 '19 09:02 urcadox

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?

aurrelhebert avatar Jun 16 '23 08:06 aurrelhebert

https://github.com/CleverCloud/clever-tools/issues/83#issuecomment-303703555

divarvel avatar Jun 16 '23 08:06 divarvel

It will be in the next release!

hsablonniere avatar Jun 26 '24 17:06 hsablonniere