66import os
77from pathlib import Path
88
9-
9+ # Get current script directory
1010currentdir = Path (__file__ ).resolve ().parent
11+ # Get parent directory
1112parentdir = currentdir .parent
13+ # Add parent directory to sys.path
1214sys .path .insert (0 , str (parentdir ))
1315
1416# import modules from commands.personal directory
2527# import modules from devops
2628from 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." )
3232def cli ():
@@ -35,16 +35,16 @@ def cli():
3535 # is REQUIRED for defining the command group
3636 pass
3737
38-
3938"""
4039Adds command groups to the `cli` group.
4140Each command group is a separate subcommand namespace.
4241The 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
4848cli .add_command (calculator .calculator )
4949cli .add_command (note_app .note_app )
5050cli .add_command (yt_dl .yt_dl )
@@ -55,7 +55,6 @@ def cli():
5555cli .add_command (cache .cache )
5656cli .add_command (image_processor .image_processor )
5757
58-
5958# Entry point of the script.
6059# Calls the CLI tool if the script is executed.
6160if __name__ == "__main__" :
0 commit comments