Skip to content

Commit

Permalink
fix: nits (#67)
Browse files Browse the repository at this point in the history
- fix: use $OS_ARCH
- docs: update for v2
  • Loading branch information
anoriqq authored May 26, 2023
1 parent 6408dc7 commit ab01527
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@ If needed, you can download binaries from [the releases page](https://github.com

## Usage
```txt
qpm
Qanat Package Manager
Usage:
qpm [command]
Available Commands:
aquifer manage aquifer
aquifer Manage aquifer
completion Generate the autocompletion script for the specified shell
config update config
config Manage qpm config
help Help about any command
install install packages
version show version info
install Install specifc package
uninstall Unnstall specifc package
Flags:
-h, --help help for qpm
-h, --help help for qpm
-v, --version version for qpm
Use "qpm [command] --help" for more information about a command.
```

## Aquifer
Expand All @@ -39,9 +41,7 @@ It has the following directory structure.

```txt
.
└── pkgname
Β Β  β”œβ”€β”€ v1.18.yml
└── latest.yml
└── pkgName.yml
```

Please refer to [the template](https://github.com/anoriqq/qpm/blob/b600c503f98c4d68ac0428dc03e36505988c2826/template/pkgname/latest.yml) for the yml file.
Please refer to [the template](https://github.com/anoriqq/qpm/blob/6408dc7/testdata/foo.yml) for the yml file.
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ get_qpm_download_url() {
-H "Accept: application/vnd.github+json" \
-u ':${{ secrets.GITHUB_TOKEN }}' \
| grep browser_download_url \
| grep linux_arm64 \
| grep $OS_ARCH \
| sed -E 's/"//g' \
| sed -E 's/.* //'
}
Expand Down Expand Up @@ -43,7 +43,7 @@ install() {
rm -rf ./tmp.qpm

# Show qpm version
/usr/local/bin/qpm version
/usr/local/bin/qpm -v
}

main() {
Expand Down

0 comments on commit ab01527

Please sign in to comment.