From 5dd3eb56474bc9106df764b5f46625c0787a4ba2 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 28 Nov 2025 16:35:11 +0100 Subject: feat(crates/rocie-cli): Add support for product parents --- crates/rocie-cli/src/cli.rs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'crates/rocie-cli/src/cli.rs') diff --git a/crates/rocie-cli/src/cli.rs b/crates/rocie-cli/src/cli.rs index a683306..626a7b1 100644 --- a/crates/rocie-cli/src/cli.rs +++ b/crates/rocie-cli/src/cli.rs @@ -15,6 +15,12 @@ pub(crate) enum Command { command: ProductCommand, }, + /// Deal with parents + Parents { + #[command(subcommand)] + command: ProductParentCommand, + }, + /// Deal with units Unit { #[command(subcommand)] @@ -34,6 +40,29 @@ pub(crate) enum Command { }, } +#[derive(Subcommand)] +pub(crate) enum ProductParentCommand { + /// Register a new product parent + Register { + #[arg(short, long)] + name: String, + + /// Optional description of the new product parent + #[arg(short, long)] + description: Option, + }, + + /// Fetch an product parent based on id + GetById { + /// The id of the product parent + #[arg(short, long)] + id: Uuid, + }, + + /// List all available product parents + List {}, +} + #[derive(Subcommand)] pub(crate) enum UnitCommand { /// Register a new unit -- cgit 1.4.1