Skip to content

Commit

Permalink
feat(script): add an early access feature for pre-release mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-lavazais committed Sep 16, 2024
1 parent 3df7a7c commit 2ea2634
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pre-feature.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import click

@click.command()
@click.option(
'--log_level', default='INFO',
help='set the logger level, choose between [CRITICAL / ERROR / WARNING / INFO / '
'DEBUG] (default = INFO)'
)
@click.option(
'--rest_url', default='http://localhost:8080',
help='set the rest url (default = http://localhost:8080)'
)
@click.option(
'--storage_name', default='storage_name',
help='set the storage name on (default = storage_name)'
)
def command_line(
log_level: str,
rest_url: str,
storage_name: str
):
print(f'=== {script.__name__} Start ===')
script_executor = Script(
log_level,
rest_url,
storage_name,
)
script_executor.run()
print(f'=== {Script.__name__} End ===')


if __name__ == '__main__':
command_line()

0 comments on commit 2ea2634

Please sign in to comment.