Skip to content

Commit 29d7c8b

Browse files
committed
tools/cli: add empty cli entrypoint
The cli does nothing but displaying help message. Signed-off-by: Olivier Hoareau <olivier.hoareau@vates.tech>
1 parent 7b98058 commit 29d7c8b

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

lib/tools/cli.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""CLI Entrypoint
2+
3+
The main entrypoint for running tools script.
4+
"""
5+
import argparse
6+
7+
def cli():
8+
parser = argparse.ArgumentParser(
9+
description="Tools that help developers for running recurrent tasks on their XCP-ng sandbox."
10+
)
11+
12+
parser.parse_args()

scripts/tools.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Just a wrapper to run cli tools package.
2+
"""
3+
import sys
4+
from pathlib import Path
5+
6+
# Add root project directory into PYTHONPATH
7+
sys.path.append(str(Path(__file__).absolute().parent.parent))
8+
9+
# flake8: noqa: E402 module level import not at top of file
10+
from lib.tools.cli import cli
11+
12+
if __name__ == "__main__":
13+
cli()

0 commit comments

Comments
 (0)