An open API service indexing awesome lists of open source software.

https://github.com/95jonpet/cmdrec

Record and retrieve command results.
https://github.com/95jonpet/cmdrec

cli command-line-tool rust-lang shell

Last synced: about 1 month ago
JSON representation

Record and retrieve command results.

Awesome Lists containing this project

README

          

[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]





Logo

cmdrec


Record and retrieve command results.


Explore the docs »




View Demo
·
Report Bug
·
Request Feature


Table of Contents



  1. About The Project


  2. Getting Started

  3. Usage

  4. Contributing

  5. License

## About The Project

`cmdrec` is a command line tool for recording, and later reusing, command results.

(back to top)

### Built With

- [![Rust][rust-shield]][rust-url]

(back to top)

## Getting Started

`cmdrec` can be installed locally using [cargo](https://doc.rust-lang.org/stable/cargo).

1. Clone the repo.

```bash
git clone https://github.com/95jonpet/cmdrec.git
```

2. Compile and run the code.

```bash
cargo install --path .
```

(back to top)

## Usage

The following example illustrates typical usage of `cmdrec`:

```bash
# Record test results.
record="$(cmdrec record -- cargo test)"

# Print errors if the `cargo test` command fails.
if [[ "$(cmdrec status "${record}")" -ne 0 ]]; then
echo "ERROR: Tests failed!" >&2
cmdrec stderr "${record}"
exit 1
fi

# Append the test output to a file.
cmdrec stdout "${record}" >> full-output.log
```

For a complete list of options, refer to the built-in help:

```bash
cmdrec --help
```

(back to top)

## Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!

1. Fork the Project.
2. Create your Feature Branch (`git checkout -b feature/amazing-feature`).
3. Commit your Changes (`git commit -m 'Add amazing feature'`).
4. Push to the Branch (`git push origin feature/amazing-feature`).
5. Open a Pull Request.

(back to top)

## License

Distributed under the MIT License. See `LICENSE.txt` for more information.

(back to top)

[contributors-shield]: https://img.shields.io/github/contributors/95jonpet/cmdrec.svg?style=for-the-badge
[contributors-url]: https://github.com/95jonpet/cmdrec/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/95jonpet/cmdrec.svg?style=for-the-badge
[forks-url]: https://github.com/95jonpet/cmdrec/network/members
[stars-shield]: https://img.shields.io/github/stars/95jonpet/cmdrec.svg?style=for-the-badge
[stars-url]: https://github.com/95jonpet/cmdrec/stargazers
[issues-shield]: https://img.shields.io/github/issues/95jonpet/cmdrec.svg?style=for-the-badge
[issues-url]: https://github.com/95jonpet/cmdrec/issues
[license-shield]: https://img.shields.io/github/license/95jonpet/cmdrec.svg?style=for-the-badge
[license-url]: https://github.com/95jonpet/cmdrec/blob/main/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/95jonpet
[rust-shield]: https://img.shields.io/badge/Rust-000000?style=for-the-badge&logo=Rust&logoColor=white
[rust-url]: https://www.rust-lang.org