From 97aced44448d0d39e8682902a47eb002b89378a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20=C5=BDic?= Date: Mon, 16 Oct 2023 13:25:06 +0200 Subject: [PATCH] Rename fdev strings from 'Locutus' to 'Freenet' (#871) * Rename fdev clap name from 'Locutus' to 'Freenet' * Finish renaming all fdev strings from "Locutus" to "Freenet" * Bump up fdev version to 0.0.6 --- crates/fdev/src/config.rs | 12 ++++++------ crates/fdev/src/inspect.rs | 2 +- crates/fdev/src/local_node.rs | 4 ++-- crates/fdev/src/local_node/user_events.rs | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/fdev/src/config.rs b/crates/fdev/src/config.rs index f7dee00ad..ae51df979 100644 --- a/crates/fdev/src/config.rs +++ b/crates/fdev/src/config.rs @@ -6,9 +6,9 @@ use freenet::dev_tool::OperationMode; use semver::Version; #[derive(clap::Parser, Clone)] -#[clap(name = "Locutus Development Tool")] +#[clap(name = "Freenet Development Tool")] #[clap(author = "The Freenet Project Inc.")] -#[clap(version = "0.0.3")] +#[clap(version = "0.0.6")] pub struct Config { #[clap(subcommand)] pub sub_command: SubCommand, @@ -18,13 +18,13 @@ pub struct Config { #[derive(clap::Parser, Clone)] pub struct BaseConfig { - /// Overrides the default data directory where Locutus contract files are stored. + /// Overrides the default data directory where Freenet contract files are stored. #[arg(long)] pub(crate) contract_data_dir: Option, - /// Overrides the default data directory where Locutus delegate files are stored. + /// Overrides the default data directory where Freenet delegate files are stored. #[arg(long)] pub(crate) delegate_data_dir: Option, - /// Overrides the default data directory where Locutus secret files are stored. + /// Overrides the default data directory where Freenet secret files are stored. #[arg(long)] pub(crate) secret_data_dir: Option, /// Node operation mode. @@ -154,7 +154,7 @@ fn parse_version(src: &str) -> Result { Version::parse(src).map_err(|e| e.to_string()) } -/// Create a new Locutus contract and/or app. +/// Create a new Freenet contract and/or app. #[derive(clap::Parser, Clone)] pub struct NewPackageCliConfig { #[arg(id = "type", value_enum)] diff --git a/crates/fdev/src/inspect.rs b/crates/fdev/src/inspect.rs index bec5adee1..7da43cab1 100644 --- a/crates/fdev/src/inspect.rs +++ b/crates/fdev/src/inspect.rs @@ -19,7 +19,7 @@ enum FileType { Contract, } -/// Inspect the packaged WASM code for Locutus. +/// Inspect the packaged WASM code for Freenet. #[derive(clap::Parser, Clone)] struct CodeInspection {} diff --git a/crates/fdev/src/local_node.rs b/crates/fdev/src/local_node.rs index 98b8c36aa..d7ccaa88c 100644 --- a/crates/fdev/src/local_node.rs +++ b/crates/fdev/src/local_node.rs @@ -42,9 +42,9 @@ pub enum DeserializationFmt { MessagePack, } -/// A CLI utility for testing out contracts against a Locutus local node. +/// A CLI utility for testing out contracts against a Freenet local node. #[derive(clap::Parser, Clone)] -#[clap(name = "Locutus Local Development Node Environment")] +#[clap(name = "Freenet Local Development Node Environment")] #[clap(author = "The Freenet Project Inc.")] #[clap(group( ArgGroup::new("output") diff --git a/crates/fdev/src/local_node/user_events.rs b/crates/fdev/src/local_node/user_events.rs index 2767cf3c4..044bf420c 100644 --- a/crates/fdev/src/local_node/user_events.rs +++ b/crates/fdev/src/local_node/user_events.rs @@ -19,7 +19,7 @@ use crate::{util, CommandSender, DynError}; use super::{state::AppState, DeserializationFmt, LocalNodeCliConfig}; -const HELP: &str = "Locutus Contract Development Environment +const HELP: &str = "Freenet Contract Development Environment SUBCOMMANDS: help Print this message