# 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 -- <program> [arguments]...
```
### Print a command only
```sh
pretty-exec --skip-exec -- <program> [arguments]...
```
### Group command output in a group in a GitHub Action logs
```sh
pretty-exec --github-actions -- <program> [arguments]...
```
### Print help message
```sh
pretty-exec --help
```
## Installation
### From [Crates.io](https://crates.io)
<pre><code>cargo install <a href="https://crates.io/crates/pretty-exec/">pretty-exec</a></code></pre>
### 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
<pre><code>yay -S <a href="https://aur.archlinux.org/packages/pretty-exec/">pretty-exec</a></code></pre>
#### Download prebuilt binary
<pre><code>yay -S <a href="https://aur.archlinux.org/packages/pretty-exec-bin/">pretty-exec-bin</a></code></pre>
## License
[MIT](https://git.io/JfwzH) © [Hoàng Văn Khải](https://github.com/KSXGitHub/)