From c50c444f2171c4460066803f85968e2e88e775e1 Mon Sep 17 00:00:00 2001 From: prplV Date: Thu, 10 Apr 2025 08:54:12 -0400 Subject: [PATCH] pub commands (need later) --- noxis-cli/src/cli.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/noxis-cli/src/cli.rs b/noxis-cli/src/cli.rs index b96e85f..5a82b64 100644 --- a/noxis-cli/src/cli.rs +++ b/noxis-cli/src/cli.rs @@ -12,7 +12,7 @@ pub struct Cli { subcommand, help = "to manage Noxis work", )] - command : Commands, + pub command : Commands, } #[derive(Debug, Subcommand, serde::Serialize, serde::Deserialize)] @@ -56,13 +56,13 @@ pub struct StartAction { num_args = 1.., value_delimiter = ' ' )] - flags : Vec, + pub flags : Vec, } #[derive(Debug, Parser, serde::Serialize, serde::Deserialize)] pub struct ConfigCommand { #[command(subcommand)] - action : ConfigAction, + pub action : ConfigAction, } #[derive(Debug, Subcommand, serde::Serialize, serde::Deserialize)] @@ -89,12 +89,12 @@ pub struct LocalConfig { action, help = "to read following input as JSON", )] - is_json : bool, + pub is_json : bool, // value #[arg( help = "path to config file or config String (with --json flag)", )] - config : String, + pub config : String, } #[derive(Debug, Parser, serde::Serialize, serde::Deserialize)] @@ -102,16 +102,16 @@ pub struct ProcessCommand { #[arg( help = "name of needed process", )] - process : String, + pub process : String, #[command( subcommand, help = "To get current process's status", )] - action : ProcessAction, + pub action : ProcessAction, } #[derive(Debug, Subcommand, serde::Serialize, serde::Deserialize)] -enum ProcessAction { +pub enum ProcessAction { #[command( about = "To get info about current process status", )]