Skip to content

Commit

Permalink
Add better organization to files
Browse files Browse the repository at this point in the history
  • Loading branch information
crodas committed Jan 17, 2024
1 parent c264f9c commit dc127de
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use fuels_core::types::bech32::Bech32Address;
use serde_json::json;

forc_util::cli_examples! {
[ Recovers a public key from a message and its signature => crypto r#"recover-public-key \
[ Get the public key from a message and its signature => crypto r#"get-public-key \
0xb0b2f29b52d95c1cba47ea7c7edeec6c84a0bd196df489e219f6f388b69d760479b994f4bae2d5f2abef7d5faf7d9f5ee3ea47ada4d15b7a7ee2777dcd7b36bb \
"Blah blah blah""#]
}
Expand All @@ -15,7 +15,7 @@ forc_util::cli_examples! {
#[clap(
author,
version,
about = "Recovers a public key from a message and its signature",
about = "Get the public key from a message and its signature",
after_long_help = help(),
)]
pub struct Arg {
Expand Down
2 changes: 1 addition & 1 deletion forc-plugins/forc-crypto/src/keys/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use clap::ValueEnum;

pub mod get_public_key;
pub mod new_key;
pub mod parse_secret;
pub mod recover;

#[derive(Clone, Debug, Default, ValueEnum)]
pub enum KeyType {
Expand Down
6 changes: 3 additions & 3 deletions forc-plugins/forc-crypto/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn help() -> &'static str {
address::examples(),
keys::new_key::examples(),
keys::parse_secret::examples(),
keys::recover::examples(),
keys::get_public_key::examples(),
)
.into_boxed_str(),
)
Expand All @@ -43,7 +43,7 @@ pub enum Command {
Keccak256(args::HashArgs),
Sha256(args::HashArgs),
Address(address::Args),
RecoverPublicKey(keys::recover::Arg),
GetPublicKey(keys::get_public_key::Arg),
NewKey(keys::new_key::Arg),
ParseSecret(keys::parse_secret::Arg),
}
Expand All @@ -60,7 +60,7 @@ fn run() -> Result<()> {
let app = Command::parse();
let content = match app {
Command::Keccak256(arg) => keccak256::hash(arg)?,
Command::RecoverPublicKey(arg) => keys::recover::handler(arg)?,
Command::GetPublicKey(arg) => keys::get_public_key::handler(arg)?,
Command::Sha256(arg) => sha256::hash(arg)?,
Command::Address(arg) => address::dump_address(arg.address)?,
Command::NewKey(arg) => keys::new_key::handler(arg)?,
Expand Down
Empty file modified forc-plugins/forc-debug/README.md
100755 → 100644
Empty file.
Empty file modified forc-plugins/forc-debug/docs/walkthrough.md
100755 → 100644
Empty file.
Empty file modified forc-plugins/forc-debug/examples/client_usage.rs
100755 → 100644
Empty file.
Empty file modified forc-plugins/forc-debug/examples/example_tx.json
100755 → 100644
Empty file.
Empty file modified forc-plugins/forc-debug/src/lib.rs
100755 → 100644
Empty file.
Empty file modified forc-plugins/forc-debug/src/names.rs
100755 → 100644
Empty file.
Empty file modified forc-plugins/forc-debug/tests/cli_integration.rs
100755 → 100644
Empty file.

0 comments on commit dc127de

Please sign in to comment.