Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkzero241/opsay
Takes text and turns it into a KND-style acronym.
https://github.com/kkzero241/opsay
cli cmd rust rust-lang
Last synced: about 2 months ago
JSON representation
Takes text and turns it into a KND-style acronym.
- Host: GitHub
- URL: https://github.com/kkzero241/opsay
- Owner: kkzero241
- License: mit
- Created: 2023-10-18T01:20:14.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-18T01:58:40.000Z (about 1 year ago)
- Last Synced: 2023-10-18T04:24:33.725Z (about 1 year ago)
- Topics: cli, cmd, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Opsay
```
now loading:
opsay mission
operation:
o.p.s.a.y.obviously
pretty
silly
app,
y'know?
```This is **opsay**, a cli program that takes input text and spits it out as an acronym.
The intent is to mimic the acronyms used for [the episode titles of Codename: Kids Next Door](https://en.wikipedia.org/wiki/List_of_Codename:_Kids_Next_Door_episodes).
# Usage
`opsay [options] `
Optional arguments:
* `-l`: Lessen the output to just the org name and acronym.
* `-n `: Change the org name from the default "opsay". Make sure to use quotes if `` contains whitespace.# Musings
I had quite a bit of fun developing this. I've always loved Kids Next Door since I was a kid, had a soft spot for [cowsay](https://en.wikipedia.org/wiki/Cowsay) since I was a teen, and have wanted to try coding in Rust ever since I found out about it. So, once I suddenly got the idea for a cowsay-and-KND-inspired toy program, I got started. I'm more than a bit amazed at just how perfect Rust ended up being for this task, with its breadth of string support powered by the magic of Unicode. The only runtime panics I encountered were a result of the string unwrapping initially not accounting for an empty vector, and I got those ironed out quite quickly. Thus, I hope this program, even for how goofy and small-scale it is, is able to make someone's day.