Skip to content

Commit

Permalink
fix hook
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaGanzin committed Aug 3, 2024
1 parent 2b88162 commit 5c6fcdd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<!-- DO NOT CHANGE THIS FILE IS GENERATED BY ./hooks/pre-commit -->

# ![build](https://github.com/slavaGanzin/await/actions/workflows/build.yaml/badge.svg)
[documentation](https://await-cli.app/)


Expand All @@ -17,12 +18,12 @@ nix-shell -p await
# arch
yay -S await

# not recommended, but works!
# not recommended, but it works!
curl https://i.jpillora.com/slavaGanzin/await! | bash
```

## completions
It's a single binary distribution, so you need to do it yourself:
### completions
It's a single binary distribution, so you need to do it yourself (or download from a release)
```bash
# bash
await --autocomplete-bash > ~/.bashrc
Expand Down Expand Up @@ -116,6 +117,9 @@ OPTIONS:
--forever -F #do not exit ever
--service -S #create systemd user service with same parameters and activate it
--version -v #print the version of await
--autocomplete-fish #output fish shell autocomplete script
--autocomplete-bash #output bash shell autocomplete script
--autocomplete-zsh #output zsh shell autocomplete script


NOTES:
Expand Down
13 changes: 7 additions & 6 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env bash
./build

echo """# await
$(du -h await | sed 's/\s.*//')b, small memory footprint, single binary that run list of commands in parallel and waits for their termination
$(du -h await | sed -E 's/\s?(.*)\s.*/\1/')b, small memory footprint, single binary that run list of commands in parallel and waits for their termination
<!-- DO NOT CHANGE THIS FILE IS GENERATED BY ./hooks/pre-commit -->
Expand All @@ -11,7 +10,7 @@ $(du -h await | sed 's/\s.*//')b, small memory footprint, single binary that run
### install
```bash
\`\`\`bash
# recommended way (crossplatform)
eget slavaGanzin/await --to /usr/local/bin/
Expand All @@ -23,11 +22,11 @@ yay -S await
# not recommended, but it works!
curl https://i.jpillora.com/slavaGanzin/await! | bash
```
\`\`\`
### completions
It's a single binary distribution, so you need to do it yourself (or download from a release)
```bash
\`\`\`bash
# bash
await --autocomplete-bash > ~/.bashrc
Expand All @@ -36,7 +35,7 @@ await --autocomplete-zsh > ~/.zshrc
#fish
await --autocomplete-fish > ~/.config/fish/completions/await.fish
```
\`\`\`
# With await you can:
### Take action on specific file type changes
Expand Down Expand Up @@ -108,4 +107,6 @@ $(./await --help)
\`\`\`
""" > README.md
git add README.md

./build
cp await /usr/local/bin/await

0 comments on commit 5c6fcdd

Please sign in to comment.