Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: add kebab-case rewrite for init and up commands (#366)
Browse files Browse the repository at this point in the history
Signed-off-by: Bastian Gruber <[email protected]>
Co-authored-by: Marko Atanasievski <[email protected]>
  • Loading branch information
gruberb and atanmarko authored Nov 7, 2023
1 parent 2d0ec8d commit b345da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/topos/src/components/node/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use serde::Serialize;

#[derive(Args, Debug, Serialize)]
#[command(about = "Setup your node!", trailing_var_arg = true)]
#[serde(rename_all = "kebab-case")]
pub struct Init {
/// Name to identify your node
#[arg(long, env = "TOPOS_NODE_NAME", default_value = "default")]
Expand Down
1 change: 1 addition & 0 deletions crates/topos/src/components/node/commands/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use serde::Serialize;

#[derive(Args, Debug, Serialize)]
#[command(about = "Spawn your node!")]
#[serde(rename_all = "kebab-case")]
pub struct Up {
/// Name to identify your node
#[arg(long, env = "TOPOS_NODE_NAME", default_value = "default")]
Expand Down

0 comments on commit b345da7

Please sign in to comment.