From 2ea26341bf4f62f4ff29cd0e49bef4cf1511792d Mon Sep 17 00:00:00 2001 From: lavazais-sylvain Date: Tue, 10 Sep 2024 18:24:00 +0200 Subject: [PATCH] feat(script): add an early access feature for pre-release mechanism --- pre-feature.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pre-feature.py diff --git a/pre-feature.py b/pre-feature.py new file mode 100644 index 0000000..88ac651 --- /dev/null +++ b/pre-feature.py @@ -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()