Skip to content

A webcomic to ASCII art program written in Rust.

License

Notifications You must be signed in to change notification settings

AkashBhave/comicli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComiCLI

A webcomic to ASCII art program written in Rust. Also a fun way to practice the language.

asciicast

Usage

comicli [FLAGS] [OPTIONS] <image>

For example, viewing XKCD comic 500 with color would be:

comicli -c xkcd:500

Flags

    --bg
-b, --braille
-c, --color
    --help       Prints help information
-V, --version    Prints version information

Options

-d, --depth <depth>       [default: 70]
-h, --height <height>
-w, --width <width>       [default: 80]

Arguments

<image>         <comic source>:<comic ID>

Structure

  • /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

Supported Sources

Currently, ComiCLI only supports pulling images from xkcd. Support for more sources might be added in the future.

Development

  1. Ensure you have Rust and Cargo installed
  2. Clone this repository
  3. Edit files as necessary
  4. Run cargo run with parameters to test
  5. Run cargo build --release to build for production

About

A webcomic to ASCII art program written in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages