From 154eb6f7ff4d268bab9ff4a121e7141c0557d76b Mon Sep 17 00:00:00 2001 From: omibo Date: Thu, 4 Apr 2024 13:00:08 -0600 Subject: [PATCH] Change lib.rs to main.rs --- src/{bin/cli.rs => main.rs} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename src/{bin/cli.rs => main.rs} (82%) diff --git a/src/bin/cli.rs b/src/main.rs similarity index 82% rename from src/bin/cli.rs rename to src/main.rs index 1bfe5fd..f978a21 100644 --- a/src/bin/cli.rs +++ b/src/main.rs @@ -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,