1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-FileCopyrightText: 2026 RAprogramm <andrey.rozanov.vl@gmail.com>
// SPDX-License-Identifier: MIT
//! Project subcommands.
use clap::Subcommand;
/// Project subcommands.
#[derive(Subcommand, Debug)]
pub enum ProjectCommands {
/// List all projects.
List,
/// Create a new project.
Create {
/// Project name (max 255 chars).
#[arg(long)]
name: String,
/// Project description (max 255 chars).
#[arg(long)]
description: Option<String>
},
/// Delete a project by ID.
Delete {
/// Project ID.
#[arg(long)]
id: i32
},
/// Update a project's name and/or description.
Set {
/// Project ID.
#[arg(long)]
id: i32,
/// New project name (max 255 chars).
#[arg(long)]
name: Option<String>,
/// New project description (max 255 chars).
#[arg(long)]
description: Option<String>
},
/// List all resources in a project.
Resources {
/// Project ID.
#[arg(long)]
id: i32
}
}