示例#1
0
              '--tree',
              is_flag=True,
              default=False,
              help='show commands tree')
def help(ctx, tree):
    """Show vcd-cli help"""
    if tree:
        print_command(ctx.parent.command)
    else:
        click.secho(ctx.parent.get_help())


if __name__ == '__main__':
    vcd()
else:
    load_user_plugins()
    from vcd_cli import catalog  # NOQA
    from vcd_cli import ca_certificates  # NOQA
    from vcd_cli import crl_certificates  # NOQA
    from vcd_cli import datastore  # NOQA
    from vcd_cli import disk  # NOQA
    from vcd_cli import dhcp_pool  # NOQA
    from vcd_cli import firewall_rule  # NOQA
    from vcd_cli import ipsec_vpn  # NOQA
    from vcd_cli import gateway  # NOQA
    from vcd_cli import info  # NOQA
    from vcd_cli import login  # NOQA
    from vcd_cli import nat_rule  # NOQA
    from vcd_cli import netpool  # NOQA
    from vcd_cli import network  # NOQA
    from vcd_cli import nsxt  # NOQA
示例#2
0
文件: vcd.py 项目: vmware/vca-cli
@vcd.command(short_help='show help')
@click.pass_context
@click.option(
    '-t', '--tree', is_flag=True, default=False, help='show commands tree')
def help(ctx, tree):
    """Show vcd-cli help"""
    if tree:
        print_command(ctx.parent.command)
    else:
        click.secho(ctx.parent.get_help())


if __name__ == '__main__':
    vcd()
else:
    load_user_plugins()
    from vcd_cli import catalog  # NOQA
    from vcd_cli import ca_certificates  # NOQA
    from vcd_cli import crl_certificates  # NOQA
    from vcd_cli import disk  # NOQA
    from vcd_cli import dhcp_pool  # NOQA
    from vcd_cli import firewall_rule  # NOQA
    from vcd_cli import ipsec_vpn  # NOQA
    from vcd_cli import gateway  # NOQA
    from vcd_cli import info  # NOQA
    from vcd_cli import login  # NOQA
    from vcd_cli import nat_rule  # NOQA
    from vcd_cli import netpool  # NOQA
    from vcd_cli import network  # NOQA
    from vcd_cli import nsxt  # NOQA
    from vcd_cli import org  # NOQA