https://github.com/ksxgithub/pretty-exec
Print a command and then execute it
https://github.com/ksxgithub/pretty-exec
cli command spawn subprocess
Last synced: 8 months ago
JSON representation
Print a command and then execute it
- Host: GitHub
- URL: https://github.com/ksxgithub/pretty-exec
- Owner: KSXGitHub
- License: mit
- Created: 2020-05-18T01:55:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-15T01:27:32.000Z (about 1 year ago)
- Last Synced: 2024-10-26T11:21:35.588Z (about 1 year ago)
- Topics: cli, command, spawn, subprocess
- Language: Rust
- Homepage:
- Size: 602 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Pretty Exec
[](https://github.com/KSXGitHub/pretty-exec/actions?query=workflow%3ATest)
[](https://travis-ci.org/KSXGitHub/pretty-exec)
Print a command and then execute it.
## Usage
### Print a command and then execute it
```sh
pretty-exec -- [arguments]...
```
### Print a command only
```sh
pretty-exec --skip-exec -- [arguments]...
```
### Group command output in a group in a GitHub Action logs
```sh
pretty-exec --github-actions -- [arguments]...
```
### Print help message
```sh
pretty-exec --help
```
## Installation
### From [Crates.io](https://crates.io/crates/pretty-exec/)
```sh
cargo install pretty-exec
```
### From [GitHub Release](https://github.com/KSXGitHub/sane-fmt/releases)
Just go to [the release page](https://github.com/KSXGitHub/sane-fmt/releases) and download suitable binary.
### From [the Arch User Repository (AUR)](https://aur.archlinux.org)
#### [Build from source](https://aur.archlinux.org/packages/pretty-exec/)
```sh
yay -S pretty-exec
```
#### [Download prebuilt binary](https://aur.archlinux.org/packages/pretty-exec-bin/)
```sh
yay -S pretty-exec-bin
```
## License
[MIT](https://git.io/JfwzH) © [Hoàng Văn Khải](https://ksxgithub.github.io/)