Skip to content

Commit 5a823aa

Browse files
committed
feat: Add new features for v1.0.3
1 parent 54f7223 commit 5a823aa

File tree

3 files changed

+271
-72
lines changed

3 files changed

+271
-72
lines changed

omnipkg/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def create_parser():
3737

3838
install_parser = subparsers.add_parser('install', help='Install packages (with downgrade protection)')
3939
install_parser.add_argument('packages', nargs='+', help='Packages to install (e.g., "requests==2.25.1")')
40+
41+
uninstall_parser = subparsers.add_parser('uninstall', help='Uninstall packages from main env or bubbles')
42+
uninstall_parser.add_argument('packages', nargs='+', help='Packages to uninstall (e.g., "requests" or "requests==2.25.1")')
43+
uninstall_parser.add_argument('--yes', '-y', action='store_true', help='Skip confirmation prompts')
4044

4145
info_parser = subparsers.add_parser('info', help='Show detailed package information with interactive version selection')
4246
info_parser.add_argument('package', help='Package name to inspect')
@@ -91,6 +95,8 @@ def main():
9195
try:
9296
if args.command == 'install':
9397
return pkg_instance.smart_install(args.packages)
98+
elif args.command == 'uninstall':
99+
return pkg_instance.smart_uninstall(args.packages, force=args.yes)
94100
elif args.command == 'info':
95101
return pkg_instance.show_package_info(args.package, args.version)
96102
elif args.command == 'list':

0 commit comments

Comments
 (0)