1pub mod api;
2pub mod auth;
3pub(crate) mod authenticated;
4pub mod boards;
5pub mod cards;
6pub mod checklist_items;
7pub mod checklists;
8pub(crate) mod client_error;
9pub mod comments;
10pub(crate) mod credential_ops;
11pub mod custom_field_items;
12pub mod custom_fields;
13pub mod lists;
14pub mod profile;
15pub mod swimlanes;
16pub mod users;
17
18use clap::Subcommand;
19
20#[derive(Debug, Subcommand)]
21pub enum RootCommand {
22 Api(api::ApiArgs),
24
25 Auth(auth::AuthArgs),
27
28 Profile(profile::ProfileArgs),
30
31 User(users::UserArgs),
33
34 Board(boards::BoardArgs),
36
37 List(lists::ListArgs),
39
40 Card(Box<cards::CardArgs>),
42
43 Checklist(checklists::ChecklistArgs),
45
46 ChecklistItem(checklist_items::ChecklistItemArgs),
48
49 Comment(comments::CommentArgs),
51
52 CustomField(custom_fields::CustomFieldArgs),
54
55 CustomFieldItem(custom_field_items::CustomFieldItemArgs),
57
58 Swimlane(swimlanes::SwimlaneArgs),
60}
61
62impl RootCommand {
63 pub const fn supports_raw_output(&self) -> bool {
64 matches!(self, Self::Api(_))
65 }
66}