2021-07-04 06:31:47 +00:00
|
|
|
import click
|
|
|
|
from clearml import Task
|
|
|
|
|
|
|
|
|
|
|
|
@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):
|
2022-02-14 08:18:41 +00:00
|
|
|
task = Task.init(project_name='examples', task_name='Click single command')
|
2021-07-04 06:31:47 +00:00
|
|
|
|
|
|
|
"""Simple program that greets NAME for a total of COUNT times."""
|
|
|
|
for x in range(count):
|
2021-08-04 08:30:32 +00:00
|
|
|
click.echo("Hello {}!".format(name))
|
2021-07-04 06:31:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
hello()
|