<reponame>DarkCat5501/win-cman<filename>cman.py
from src.project import ProjectManager
import argparse as agp
import workspace as wp
import sys 

if __name__=="__main__":
	current_workspace = wp.Workspace()

	main_parser = agp.ArgumentParser(sys.argv[0], description= "Window C/C++ project manager")
	wp.Workspace.add_parser_arguments(main_parser)
	args = main_parser.parse_args(sys.argv[1:])
	current_workspace.parse_arguments(args)

	# ##project generation START
	# generator_parser.add_argument("name", type=str, default="project")
	# #git options
	# git_parser = generator_parser.add_argument_group("git")
	# git_parser.add_argument('--git', 
	# 	help="skips asking for git repository initialization",
	# 	action=agp.BooleanOptionalAction)
	# git_parser.add_argument("-git-repo", 
	# 	help="sets the git repository to be initialized",
	# 	default=None)
	# git_parser.add_argument("-git-clone", 
	# 	help="change the behavior of repository initialization for cloning",
	# 	action="store_true",default=False)	
	# #make option
	# make_parser = generator_parser.add_argument_group("make")
	# make_parser.add_argument("--make",
	# 	help="skips asking for makefile generation",
	# 	action =agp.BooleanOptionalAction)
	# make_parser.add_argument("--make-sub",
	# 	help="skips asking for makefile generation",
	# 	action="store_true",default=False)
	# ##project generation END

	# ##libraries management START
	# library_parser.add_argument("--list","-ls",help="List all libraries installed",action="store_true",default=False)

	# parser.add_argument('--use-lib',"--ul",
	# type=str, nargs="+",
	# help="adds a library to current project's dependencies",
	# action='extend')

	##libraries management END
	


from src.project import ProjectManager
import argparse as agp
import workspace as wp
import sys 

if __name__=="__main__":
	current_workspace = wp.Workspace()

	main_parser = agp.ArgumentParser(sys.argv[0], description= "Window C/C++ project manager")
	wp.Workspace.add_parser_arguments(main_parser)
	args = main_parser.parse_args(sys.argv[1:])
	current_workspace.parse_arguments(args)

	# ##project generation START
	# generator_parser.add_argument("name", type=str, default="project")
	# #git options
	# git_parser = generator_parser.add_argument_group("git")
	# git_parser.add_argument('--git', 
	# 	help="skips asking for git repository initialization",
	# 	action=agp.BooleanOptionalAction)
	# git_parser.add_argument("-git-repo", 
	# 	help="sets the git repository to be initialized",
	# 	default=None)
	# git_parser.add_argument("-git-clone", 
	# 	help="change the behavior of repository initialization for cloning",
	# 	action="store_true",default=False)	
	# #make option
	# make_parser = generator_parser.add_argument_group("make")
	# make_parser.add_argument("--make",
	# 	help="skips asking for makefile generation",
	# 	action =agp.BooleanOptionalAction)
	# make_parser.add_argument("--make-sub",
	# 	help="skips asking for makefile generation",
	# 	action="store_true",default=False)
	# ##project generation END

	# ##libraries management START
	# library_parser.add_argument("--list","-ls",help="List all libraries installed",action="store_true",default=False)

	# parser.add_argument('--use-lib',"--ul",
	# type=str, nargs="+",
	# help="adds a library to current project's dependencies",
	# action='extend')

	##libraries management END
# ##project generation START # generator_parser.add_argument("name", type=str, default="project") # #git options # git_parser = generator_parser.add_argument_group("git") # git_parser.add_argument('--git', # 	help="skips asking for git repository initialization", # 	action=agp.BooleanOptionalAction) # git_parser.add_argument("-git-repo", # 	help="sets the git repository to be initialized", # 	default=None) # git_parser.add_argument("-git-clone", # 	help="change the behavior of repository initialization for cloning", # 	action="store_true",default=False) # #make option # make_parser = generator_parser.add_argument_group("make") # make_parser.add_argument("--make", # 	help="skips asking for makefile generation", # 	action =agp.BooleanOptionalAction) # make_parser.add_argument("--make-sub", # 	help="skips asking for makefile generation", # 	action="store_true",default=False) # ##project generation END # ##libraries management START # library_parser.add_argument("--list","-ls",help="List all libraries installed",action="store_true",default=False) # parser.add_argument('--use-lib',"--ul", # type=str, nargs="+", # help="adds a library to current project's dependencies", # action='extend') ##libraries management END