Skip to content

Commit

Permalink
add --version
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jun 10, 2024
1 parent 9b8ce4b commit 063398a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sb.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,10 +804,7 @@ def manage_ansible_venv(recreate=False):
"--upgrade", "--requirement", "/srv/git/sb/requirements-saltbox.txt"]
run_command(cmd)

copy_files(
["/srv/ansible/venv/bin/ansible*", "/srv/ansible/venv/bin/certbot", "/srv/ansible/venv/bin/apprise"],
"/usr/local/bin/"
)
copy_files(["/srv/ansible/venv/bin/ansible*", "/srv/ansible/venv/bin/certbot", "/srv/ansible/venv/bin/apprise"], "/usr/local/bin/")

cmd = ["chown", "-R", f"{SALTBOX_USER}:{SALTBOX_USER}", ansible_venv_path]
run_command(cmd)
Expand Down Expand Up @@ -898,6 +895,9 @@ def add_verbosity_argument(arg_parser):
parser_handle_version = subparsers.add_parser('version', help='Reports the version of the binary')
parser_handle_version.set_defaults(func=handle_version)

# Add the --version argument to the main parser
parser.add_argument('--version', action='store_true', help='Reports the version of the binary')

args = parser.parse_args()
# Call the appropriate handler function
if 'func' in args:
Expand Down

0 comments on commit 063398a

Please sign in to comment.