komac: add shorthands (#18655)

* komac: add shorthands

* komac: limit up to 2 versions

* remove 'merge-upstream' option from sync command in komac documentation
This commit is contained in:
Meinard Francisco
2025-10-11 15:01:41 +08:00
committed by GitHub
parent 9b3d0cf260
commit edb33e6128
+8 -8
View File
@@ -5,32 +5,32 @@
- Create a new package from scratch:
`komac new {{Package.Identifier}} --version {{1.2.3}} --urls {{https://example.com/app.exe}}`
`komac new {{Package.Identifier}} {{[-v|--version]}} {{1.2.3}} {{[-u|--urls]}} {{https://example.com/app.exe}}`
- Update an existing package with a new version:
`komac update {{Package.Identifier}} --version {{1.2.3}} --urls {{https://example.com/app.exe}}`
`komac update {{Package.Identifier}} {{[-v|--version]}} {{1.2.3}} {{[-u|--urls]}} {{https://example.com/app.exe}}`
- Update a package with multiple URLs and automatically submit:
`komac update {{Package.Identifier}} --version {{1.2.3}} --urls {{https://example.com/app.exe https://example.com/app.msi ...}} --submit`
`komac update {{Package.Identifier}} {{[-v|--version]}} {{1.2.3}} {{[-u|--urls]}} {{https://example.com/app.exe https://example.com/app.msi ...}} {{[-s|--submit]}}`
- Remove a version from winget-pkgs:
`komac remove {{Package.Identifier}} --version {{1.2.3}}`
`komac remove {{Package.Identifier}} {{[-v|--version]}} {{1.2.3}}`
- List all versions for a package:
`komac list-versions {{Package.Identifier}}`
`komac {{[list|list-versions]}} {{Package.Identifier}}`
- Sync your fork of winget-pkgs with the upstream repository:
`komac sync-fork`
`komac {{[sync|sync-fork]}}`
- Update the stored GitHub token:
`komac token update --token {{your_github_token}}`
`komac token {{[add|update]}} {{[-t|--token]}} {{your_github_token}}`
- Generate shell autocompletion script:
`komac complete {{bash|zsh|fish|powershell}}`
`komac {{[complete|autocomplete]}} {{bash|elvish|fish|powershell|zsh}}`