Skip to content

Commit

Permalink
Change lib.rs to main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
omibo committed Apr 4, 2024
1 parent 3e46b9a commit 154eb6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bin/cli.rs → src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ use capycrypt::{Hashable, Message, SecParam};
use structopt::StructOpt;

#[derive(Debug, StructOpt)]
#[structopt(name = "capycrypt-cli", about = "A simple hashing CLI")]
#[structopt(
name = "capycrypt-cli",
about = "Support command-line interface for capyCrypt library"
)]
enum Command {
//enums and structs in rust can be used almost interchangeably.
#[structopt(name = "compute_sha3_hash")] // the name of the program to run
#[structopt(name = "sha3")]
Sha3 {
#[structopt(help = "The input string to hash")]
input: String,
Expand Down

0 comments on commit 154eb6f

Please sign in to comment.