Skip to content

Commit 5e5bd82

Browse files
pushing updated changes
1 parent 4c4463d commit 5e5bd82

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

zap_cli/zap_cli.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
import os
77
from pathlib import Path
88

9-
9+
# Get current script directory
1010
currentdir = Path(__file__).resolve().parent
11+
# Get parent directory
1112
parentdir = currentdir.parent
13+
# Add parent directory to sys.path
1214
sys.path.insert(0, str(parentdir))
1315

1416
# import modules from commands.personal directory
@@ -25,8 +27,6 @@
2527
# import modules from devops
2628
from commands.devops import *
2729

28-
29-
3030
# define main command group for the CLI Tool
3131
@click.group(help="ZAP CLI tool:A command-line interface for various utilities.")
3232
def cli():
@@ -35,16 +35,16 @@ def cli():
3535
# is REQUIRED for defining the command group
3636
pass
3737

38-
3938
"""
4039
Adds command groups to the `cli` group.
4140
Each command group is a separate subcommand namespace.
4241
The first part is the module and the second part specifies the command to be added.
4342
"""
4443

45-
# example
46-
# adding the 'calculator' command group to the CLI
47-
# `calculator.calculator` refers to the `calculator` module's `calculator` command group
44+
# ========== ADD DEVOPS GROUP TO CLI
45+
# CODE HERE
46+
47+
# ========== ADD PERSONAL GROUP TO CLI
4848
cli.add_command(calculator.calculator)
4949
cli.add_command(note_app.note_app)
5050
cli.add_command(yt_dl.yt_dl)
@@ -55,7 +55,6 @@ def cli():
5555
cli.add_command(cache.cache)
5656
cli.add_command(image_processor.image_processor)
5757

58-
5958
# Entry point of the script.
6059
# Calls the CLI tool if the script is executed.
6160
if __name__ == "__main__":

0 commit comments

Comments
 (0)