https://github.com/codecanna/petfacts-rust
Petfacts re-written in Rust.
https://github.com/codecanna/petfacts-rust
Last synced: 5 months ago
JSON representation
Petfacts re-written in Rust.
- Host: GitHub
- URL: https://github.com/codecanna/petfacts-rust
- Owner: CodeCanna
- License: gpl-3.0
- Created: 2023-03-05T05:56:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T00:28:18.000Z (over 1 year ago)
- Last Synced: 2025-04-14T11:56:26.927Z (about 1 year ago)
- Language: Rust
- Size: 70.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Petfacts (Rust Edition)
Petfacts is a small command line utility for printing out dog or cat facts to the console, this is the rust edition.
The Python edition can be found [here](https://github.com/CodeCanna/petfacts) and has more features at the moment. I'm working to re-write petfacts fully in Rust.
## Installation
To install first make sure you have Cargo installed and open a console window; type `cargo install petfacts` and Cargo should take care of the rest.
## Usage
* `petfacts dog` - Print a random dog fact to the console.
* `petfacts cat` - Print a random cat fact to the console.
* `petfacts` - Print a fact but dog or cat is chosen at random.
* `petfacts help` - Print the help screen.
* `petfacts version` - Print current petfacts version