From 1c6729daab13ff4c34f25eaea01cb7c19e543309 Mon Sep 17 00:00:00 2001 From: prplV Date: Tue, 10 Dec 2024 14:10:04 +0300 Subject: [PATCH] import serde + little fixes --- noxis-cli/Cargo.toml | 2 ++ noxis-cli/src/cli.rs | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) 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)",