From 5a7fa266efe6c3a5cb39b173142c0b3a59e68719 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 7 Jul 2024 23:18:51 +0200 Subject: document commands --- server/src/state.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'server/src/state.rs') diff --git a/server/src/state.rs b/server/src/state.rs index e3283c95..d2470983 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -19,23 +19,31 @@ pub struct State { #[derive(Parser)] #[clap(multicall = true)] enum Command { + /// Start a new game Start { + /// Gamedata specification #[arg(default_value = "junior")] spec: String, + /// Duration in seconds #[arg(default_value = "420")] timer: u64, }, + /// Abort the current game + End, + /// Download recipe/demand/map's source declaration Download { + /// Resource kind #[arg(value_enum)] r#type: DownloadType, + /// Name name: String, }, + /// List all recipes, demands and maps List, - Effect { - name: String, - }, + /// Send an effect + Effect { name: String }, + /// Reload the resource index Reload, - End, } #[derive(ValueEnum, Clone)] -- cgit v1.2.3-70-g09d2