A webcomic to ASCII art program written in Rust. Also a fun way to practice the language.
comicli [FLAGS] [OPTIONS] <image>
For example, viewing XKCD comic 500 with color would be:
comicli -c xkcd:500
--bg
-b, --braille
-c, --color
--help Prints help information
-V, --version Prints version information
-d, --depth <depth> [default: 70]
-h, --height <height>
-w, --width <width> [default: 80]
<image> <comic source>:<comic ID>
- /src/main.rs: Runs the actual program
- /src/opt.rs: Contains information about command line usage
- /src/ascii.rs: Handles converting between and image and an ASCII output, adopted from @ajmwagar/rascii
Currently, ComiCLI only supports pulling images from xkcd. Support for more sources might be added in the future.
- Ensure you have Rust and Cargo installed
- Clone this repository
- Edit files as necessary
- Run
cargo run
with parameters to test - Run
cargo build --release
to build for production