Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kup update as alias for kup install #128

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/kup/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,14 @@ def main() -> None:
)
install.add_argument('-h', '--help', action=_HelpInstallAction)

update = subparser.add_parser(
'update',
help='update the stated package (alias of install)',
add_help=False,
parents=[verbose_arg, shared_args],
)
update.add_argument('-h', '--help', action=_HelpInstallAction)

uninstall = subparser.add_parser(
'uninstall', help="remove the given package from the user's PATH", parents=[verbose_arg]
)
Expand Down Expand Up @@ -966,7 +974,7 @@ def main() -> None:
if args.command == 'list':
list_package(package_name.base, args.inputs, args.status, args.version)

elif args.command == 'install':
elif args.command == 'install' or args.command == 'update':
goodlyrottenapple marked this conversation as resolved.
Show resolved Hide resolved
install_package(package_name, args.version, args.override)
elif args.command == 'uninstall':
uninstall_package(package_name.base)
Expand Down
Loading