Skip to content

Commit

Permalink
feat: support winget (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Dec 9, 2023
1 parent 533636d commit cb2f668
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pacman -S vim # use pacman syntax to install a package
| snap | snap install --classic <pkg> | snap remove <pkg> | snap refresh <pkg> | snap find <pkg> | snap info <pkg> | - | snap refresh | snap list |
| upt | upt install <pkg> | upt remove <pkg> | upt upgrade <pkg> | upt search <pkg> | upt info <pkg> | upt update | upt upgrade | upt list |
| urpm | urpmi <pkg> | urpme <pkg> | urpmi <pkg> | urpmq -y/--fuzzy <pkg> | urpmq -i <pkg> | urpmi.update -a | urpmi --auto-update | rpm -q/--query --all |
| winget | winget install <pkg> | winget uninstall <pkg> | winget upgrade <pkg> | winget search <pkg> | winget show <pkg> | - | winget upgrade --all | winget list |
| xbps | xbps-install <pkg> | xbps-remove <pkg> | xbps-install -u/--update <pkg> | xbps-query -Rs <pkg> | xbps-query -RS <pkg> | xbps-install -S/--sync | xbps-install -u/--update | qxbps-query -l/--list-pkgs |
| yum | yum install <pkg> | yum remove <pkg> | yum upgrade <pkg> | yum search <pkg> | yum info <pkg> | yum check-update | yum update | yum list --installed |
| zypper | zypper install <pkg> | zypper remove <pkg> | zypper update <pkg> | zypper search <pkg> | zypper info <pkg> | zypper refresh | zypper update | zypper search -i/--installed-only |
Expand Down
12 changes: 12 additions & 0 deletions src/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,18 @@ vendors![
upgrade_all: "urpmi --auto-update",
list_installed: "rpm -q/--query --all",
},
{
name: "winget",
confirm: "",
install: "winget install $",
remove: "winget uninstall $",
upgrade: "winget upgrade $",
search: "winget search $",
info: "winget show $",
update_index: "",
upgrade_all: "winget upgrade --all",
list_installed: "winget list",
},
{
name: "xbps",
confirm: "-y/--yes",
Expand Down

0 comments on commit cb2f668

Please sign in to comment.