ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran-z <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #107: ARIA-148 CLI display commands
Date Wed, 03 May 2017 14:17:19 GMT
Github user ran-z commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/107#discussion_r114554090
  
    --- Diff: aria/cli/commands/services.py ---
    @@ -177,3 +179,31 @@ def inputs(service_name, model_storage, logger):
             logger.info(inputs_string.getvalue())
         else:
             logger.info('\tNo inputs')
    +
    +
    +@services.command(name='display',
    +                  short_help='Display service information')
    +@aria.argument('service-name')
    +@aria.options.verbose()
    +@aria.options.display_json
    +@aria.options.display_yaml
    +@aria.options.display_graph
    +@aria.pass_model_storage
    +@aria.pass_logger
    +def display(service_name, model_storage, json, yaml, graph, logger):
    +    """Display information for a specific service template
    +
    +    `SERVICE_NAME` is the name of the service to display information on.
    +    """
    +    logger.info('Displaying service {0}...'.format(service_name))
    +    service = model_storage.service.get_by_name(service_name)
    +    consumption.ConsumptionContext()
    +    if graph:
    --- End diff --
    
    General reminder that none of the methods below are standard for the CLI
    Fine for now, but keep https://issues.apache.org/jira/browse/ARIA-183 in mind


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message