diff --git a/noxis-cli/Cargo.toml b/noxis-cli/Cargo.toml index 5df0b28..2b21f0a 100644 --- a/noxis-cli/Cargo.toml +++ b/noxis-cli/Cargo.toml @@ -5,3 +5,5 @@ edition = "2021" [dependencies] clap = { version = "4.5.22", features = ["derive"] } +serde = { version = "1.0.215", features = ["derive"] } +serde_json = "1.0.133" diff --git a/noxis-cli/src/cli.rs b/noxis-cli/src/cli.rs index f887a4e..7be94f6 100644 --- a/noxis-cli/src/cli.rs +++ b/noxis-cli/src/cli.rs @@ -1,5 +1,3 @@ -use std::string; - use clap::{Parser, Subcommand}; #[derive(Debug, Parser)] @@ -84,7 +82,7 @@ pub struct LocalConfig { action, help = "to read following input as JSON", )] - type_of_entry : bool, + is_json : bool, // value #[arg( help = "path to config file or config String (with --json flag)",