1pub mod api;
2pub mod auth;
3pub(crate) mod authenticated;
4pub mod boards;
5pub mod cards;
6pub(crate) mod client_error;
7pub mod comments;
8pub(crate) mod credential_ops;
9pub mod lists;
10pub mod profile;
11pub mod swimlanes;
12pub mod users;
13
14use clap::Subcommand;
15
16#[derive(Debug, Subcommand)]
17pub enum RootCommand {
18 Api(api::ApiArgs),
20
21 Auth(auth::AuthArgs),
23
24 Profile(profile::ProfileArgs),
26
27 User(users::UserArgs),
29
30 Board(boards::BoardArgs),
32
33 List(lists::ListArgs),
35
36 Card(Box<cards::CardArgs>),
38
39 Comment(comments::CommentArgs),
41
42 Swimlane(swimlanes::SwimlaneArgs),
44}
45
46impl RootCommand {
47 pub const fn supports_raw_output(&self) -> bool {
48 matches!(self, Self::Api(_))
49 }
50}