def add_command_documentation()

in service/azservice/__main__.py [0:0]


def add_command_documentation(completion, command):
    help = get_help(command.name)
    if help:
        short_summary = help.get('short-summary')
        if short_summary:
            completion['documentation'] = short_summary
            long_summary = help.get('long-summary')
            if long_summary:
                completion['documentation'] += '\n\n' + long_summary
            examples = help.get('examples')
            if examples:
                for example in examples:
                    completion['documentation'] += '\n\n' + example['name'].strip() + '\n' + example['text'].strip()