pngchat 1.0.1

Hide messages in the PNG file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;

use pngchat::{
    args::{Commands, PngChatArgs},
    commands::{decode, encode, print_chunks, remove},
    Result,
};

fn main() -> Result<()> {
    let cli = PngChatArgs::parse();

    match &cli.command {
        Commands::Encode(args) => encode(args),
        Commands::Decode(args) => decode(args),
        Commands::Remove(args) => remove(args),
        Commands::Print(args) => print_chunks(args),
    }
}