Skip to content

Commit 94cc88c

Browse files
rollback: disable varset command
1 parent 6e9246c commit 94cc88c

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

src/cli/server_subcommands.rs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,19 @@ pub(crate) enum ServerSubcommands {
3636
#[clap(short)]
3737
name: Option<String>
3838
},
39-
/// Sets a config variable
40-
Varset {
41-
/// Variable's section
42-
#[clap(short)]
43-
section: String,
44-
/// Variable's name
45-
#[clap(short)]
46-
name: String,
47-
/// Variable's new value
48-
#[clap(short)]
49-
value: String
50-
},
39+
//FIXME not working, probably incorrect packet format
40+
// /// Sets a config variable
41+
// Varset {
42+
// /// Variable's section
43+
// #[clap(short)]
44+
// section: String,
45+
// /// Variable's name
46+
// #[clap(short)]
47+
// name: String,
48+
// /// Variable's new value
49+
// #[clap(short)]
50+
// value: String
51+
// },
5152
}
5253

5354

@@ -92,9 +93,9 @@ pub(crate) fn handle_server_subcommand( cmd: ServerSubcommands, options: CliOpti
9293
ServerSubcommands::Varlist { section, name } => {
9394
rw3d_core::commands::var_list(section, name)
9495
}
95-
ServerSubcommands::Varset { section, name, value } => {
96-
rw3d_core::commands::var_set(section, name, value)
97-
}
96+
// ServerSubcommands::Varset { section, name, value } => {
97+
// rw3d_core::commands::var_set(section, name, value)
98+
// }
9899
};
99100

100101
stream.write( p.to_bytes().as_slice() ).unwrap();

0 commit comments

Comments
 (0)