Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimver/catsay
My first Rust CLI tool
https://github.com/jimver/catsay
cat cli rust useless
Last synced: 2 months ago
JSON representation
My first Rust CLI tool
- Host: GitHub
- URL: https://github.com/jimver/catsay
- Owner: Jimver
- Created: 2018-10-15T11:52:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-20T16:42:51.000Z (about 1 year ago)
- Last Synced: 2024-10-11T04:03:55.005Z (3 months ago)
- Topics: cat, cli, rust, useless
- Language: Rust
- Homepage:
- Size: 74.2 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# catsay
[![Build Status](https://travis-ci.org/Jimver/catsay.svg?branch=master)](https://travis-ci.org/Jimver/catsay)
[![Build status](https://ci.appveyor.com/api/projects/status/yfam2mj2f4gqvd9i?svg=true)](https://ci.appveyor.com/project/Jimver/catsay)
[![Snap Status](https://build.snapcraft.io/badge/Jimver/catsay.svg)](https://build.snapcraft.io/user/Jimver/catsay)This is a useless cli tool of a cat echoing what you say.
## Installation
If you have `snap` installed (Ubuntu 16.04 and up) you can simply install using:`sudo snap install cat-say`
And run it like:
`cat-say hello`
If you don't have snap you can just get the latest binaries [here](https://github.com/Jimver/catsay/releases/latest)
## Operation
You can either provide your text:- Like separate arguments
`catsay hello there`
- As a single string
`catsay "hello there"`
- As standard input
`echo "hello there" | catsay`
For help run either:
- `catsay -h`
- `catsay --help`Note: when no argument is given (so just `catsay`) the program assumes the input will come from stdin so it will block until it receives an EOF (Ctrl+D)
## Build instructions
To build this project you need the Rust language installed:`cargo build`
And to run it:
`cargo run hello there`
## TODOs
- Add tests
- Proper help message