This repository was archived by the owner on Apr 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import install
2+
3+
4+ def main (packages , noconfirm = False ):
5+ for i in packages :
6+ install .main (i , noconfirm )
Original file line number Diff line number Diff line change 11import argparse
2- import install
2+
33import delete
4- import update
5- import search
6- import updatelist
4+ import finstall
5+ import info
76import init
87import lspkgs
9- import info
108import mirrors
9+ import search
10+ import update
11+ import updatelist
1112
1213parser = argparse .ArgumentParser (description = "A simple package manager" )
1314subparsers = parser .add_subparsers (dest = "command" , required = True )
1415
1516# install
16- p_install = subparsers .add_parser ("get" , help = "Install a package " )
17- p_install .add_argument ("package " , help = "Package to install" )
17+ p_install = subparsers .add_parser ("get" , help = "Install packages " )
18+ p_install .add_argument ("packages " , nargs = "+" , help = "Packages to install" )
1819p_install .add_argument (
19- "--noconfirm" ,
20- action = "store_true" ,
21- help = "Install without confirmation"
20+ "--noconfirm" , action = "store_true" , help = "Install without confirmation"
2221)
2322
2423# delete
4847args = parser .parse_args ()
4948
5049if args .command == "get" :
51- install .main (noconfirm = args .noconfirm , package = args .package )
50+ finstall .main (packages = args .packages , noconfirm = args .noconfirm )
5251elif args .command == "delete" :
5352 delete .main (args .package )
5453elif args .command == "update" :
You can’t perform that action at this time.
0 commit comments