Skip to content

Commit

Permalink
feat(cli): start CLI implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-laporte-pro committed Apr 24, 2024
1 parent a20cc39 commit 4117b6f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/antares_web_installer/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
Main entrypoint for the CLI application.
"""
import sys

from antares_web_installer.cli import install_cli


def main():
install_cli(sys.argv[1:])


if __name__ == '__main__':
main()
14 changes: 14 additions & 0 deletions src/antares_web_installer/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import time

import click


@click.command()
@click.argument('target_dir', type=click.Path())
def install_cli(target_dir):
"""
Install Antares Web.
"""
print(f"Starting installation in directory: '{target_dir}'...")
time.sleep(1)
print("Installation complete!")

0 comments on commit 4117b6f

Please sign in to comment.