You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by "Ran Ziv (JIRA)" <ji...@apache.org> on 2017/05/08 10:51:04 UTC

[jira] [Created] (ARIA-217) Use services/service-templates IDs in addition to names in CLI

Ran Ziv created ARIA-217:
----------------------------

             Summary: Use services/service-templates IDs in addition to names in CLI
                 Key: ARIA-217
                 URL: https://issues.apache.org/jira/browse/ARIA-217
             Project: AriaTosca
          Issue Type: Story
            Reporter: Ran Ziv
            Priority: Trivial


In the CLI, services and service-templates are referenced by name rather than ID; This is in contrast to the rest of the models, but allows for much more intuitive use of the CLI.

Assuming we want both consistency and working with names, we could try to allow working with both names and IDs for these two models.

One way to do this is to use optional flags (i.e. {{-n <name>}} and {{-i <id>}})

Another option is to keep the current format (positional argument) and simply try the value against name then fallback to ID if necessary (so for example, {{aria service-templates list 5}} would try to find a service-template with {{5}} for its name, otherwise it'll try to find a service-template with {{5}} for its ID). This could potentially lead to ambiguity, but since most names aren't simple numbers this should be relatively rare.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)