src/tablemate/commands/help.py
def help_command(ctx):
    """Print some information on the system environment."""
    def banner(title):
        "Helper"
        click.echo('')
        click.secho('~~~ {} ~~~'.format(title), fg='green', bg='black', bold=True)

    app_name = ctx.find_root().info_name
    click.secho('*** "{}" Help & Information ***'.format(app_name), fg='white', bg='blue', bold=True)

    banner('Version Information')
    click.echo(config.version_info(ctx))

    banner('Configuration')
    locations = config.locations(exists=False, extras=ctx.find_root().params.get('config', None))
    locations = [(u'✔' if os.path.exists(i) else u'✘', pretty_path(i)) for i in locations]
    click.echo(u'The following configuration files are merged in order, if they exist:\n    {0}'.format(
        u'\n    '.join(u'{}   {}'.format(*i) for i in locations),
    ))

    banner('More Help')
    click.echo("Call '{} --help' to get a list of available commands & options.".format(app_name))
    click.echo("Call '{} «command» --help' to get help on a specific command.".format(app_name))
    click.echo("Call '{} --version' to get the above version information separately.".format(app_name))
    click.echo("Call '{} --license' to get licensing informatioon.".format(app_name))

    # click.echo('\ncontext = {}'.format(repr(vars(ctx))))
    # click.echo('\nparent = {}'.format(repr(vars(ctx.parent))))
Print some information on the system environment.
Print some information on the system environment.
Print some information on the system environment .
def help_command(ctx):
    def banner(title):
        click.echo('')
        click.secho('~~~ {} ~~~'.format(title), fg='green', bg='black', bold=True)
    app_name = ctx.find_root().info_name
    click.secho('*** "{}" Help & Information ***'.format(app_name), fg='white', bg='blue', bold=True)
    banner('Version Information')
    click.echo(config.version_info(ctx))
    banner('Configuration')
    locations = config.locations(exists=False, extras=ctx.find_root().params.get('config', None))
    locations = [(u'✔' if os.path.exists(i) else u'✘', pretty_path(i)) for i in locations]
    click.echo(u'The following configuration files are merged in order, if they exist:\n    {0}'.format(
        u'\n    '.join(u'{}   {}'.format(*i) for i in locations),
    ))
    banner('More Help')
    click.echo("Call '{} --help' to get a list of available commands & options.".format(app_name))
    click.echo("Call '{} «command» --help' to get help on a specific command.".format(app_name))
    click.echo("Call '{} --version' to get the above version information separately.".format(app_name))
    click.echo("Call '{} --license' to get licensing informatioon.".format(app_name))
def help_command ( ctx ) : def banner ( title ) : "Helper" click . echo ( '' ) click . secho ( '~~~ {} ~~~' . format ( title ) , fg = 'green' , bg = 'black' , bold = True ) app_name = ctx . find_root ( ) . info_name click . secho ( '*** "{}" Help & Information ***' . format ( app_name ) , fg = 'white' , bg = 'blue' , bold = True ) banner ( 'Version Information' ) click . echo ( config . version_info ( ctx ) ) banner ( 'Configuration' ) locations = config . locations ( exists = False , extras = ctx . find_root ( ) . params . get ( 'config' , None ) ) locations = [ ( u'✔' i  o .p a th.e x ists(i ) e se u ✘', pr e ty_path(i)) f o r i i oc tions] click . echo ( u'The following configuration files are merged in order, if they exist:\n    {0}' . format ( u'\n    ' . join ( u'{}   {}' . format ( * i ) for i in locations ) , ) ) banner ( 'More Help' ) click . echo ( "Call '{} --help' to get a list of available commands & options." . format ( app_name ) ) click . echo ( "Call '{} «command» --help' to get help on a specific command.".f o rmat(a p p_name)) click . echo ( "Call '{} --version' to get the above version information separately." . format ( app_name ) ) click . echo ( "Call '{} --license' to get licensing informatioon." . format ( app_name ) )
Print some information on the system environment.
Print some information on the system environment .
"""Print some information on the system environment.""" "Helper" # click.echo('\ncontext = {}'.format(repr(vars(ctx)))) # click.echo('\nparent = {}'.format(repr(vars(ctx.parent))))
ctx