Skip to content

cli

Main biskotakigold CLI.

main()

TODO Write this content that gets renders when invoking with --help flag!

Eg: Create a Project from the project template.

Cookiecutter Python Package is Free/Libre Open Source Software. If you would like to get in touch, please see https://github.com/boromir674/cookiecutter-python-package.

Source code in src/biskotakigold/cli.py
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@click.command(context_settings=dict(help_option_names=[u'-h', u'--help']))
@click.version_option(__version__, u'-V', u'--version', message=version_msg())
# @click.option('-v', '--verbose', is_flag=True, help='Print debug information', default=False)
def main(
    # verbose,
):
    """TODO Write this content that gets renders when invoking with --help flag!

    Eg:
    Create a Project from the project template.

    Cookiecutter Python Package is Free/Libre Open Source Software. If you would
    like to get in touch, please see
    https://github.com/boromir674/cookiecutter-python-package.
    """
    try:
        pass
    except Exception as error:  # pylint: disable=broad-except
        click.echo(error)
        sys.exit(1)

version_msg()

biskotakigold version, location and Python version.

Get message about biskotakigold version, location and Python version.

Source code in src/biskotakigold/cli.py
13
14
15
16
17
18
19
20
21
22
def version_msg():
    """biskotakigold version, location and Python version.

    Get message about biskotakigold version, location
    and Python version.
    """
    python_version = sys.version[:3]
    message = u"Biskotaki Gold Standard %(version)s from {} (Python {})"
    location = os.path.dirname(this_file_location)
    return message.format(location, python_version)