Arubacloud / pyArubaConsole

Python Console to manage Aruba Cloud IaaS Service
https://www.arubacloud.com
2 stars 1 forks source link

Fastest CLI #3

Open szepeviktor opened 7 years ago

szepeviktor commented 7 years ago

@blackms Please take a look at click

import click

@click.command()
@click.option('--count', default=1, help='Number of greetings.')
@click.option('--name', prompt='Your name',
              help='The person to greet.')

def hello(count, name):
    """Simple program that greets NAME for a total of COUNT times."""
    for x in range(count):
        click.echo('Hello %s!' % name)

if __name__ == '__main__':
    hello()

Seems like a busy project for implementing CLI from an API library: https://github.com/pallets/click/issues

szepeviktor commented 7 years ago

Click is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary.

I think you would like it!