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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//! CLI command definitions (clap derive).
pub mod asset_cmd;
pub mod auth_cmd;
pub mod download;
pub mod extension;
pub mod ida_cmd;
pub mod ke;
pub mod license;
pub mod login;
pub mod logout;
pub mod plugin_cmd;
pub mod share;
pub mod update;
pub mod whoami;
use clap::Subcommand;
/// Top-level subcommands.
#[derive(Debug, Subcommand)]
pub enum Commands {
/// Log in to the Hex-Rays portal
Login(login::LoginArgs),
/// Log out and remove stored credentials
Logout(logout::LogoutArgs),
/// Display the currently logged-in user
Whoami,
/// Check for updates
Update(update::UpdateArgs),
/// Download IDA binaries, SDKs, and utilities
Download(download::DownloadArgs),
/// List all available commands
Commands,
/// Manage authentication credentials
Auth {
#[command(subcommand)]
command: auth_cmd::AuthCommands,
},
/// Share files with Hex-Rays
Share {
#[command(subcommand)]
command: share::ShareCommands,
},
/// Manage IDA licenses
License {
#[command(subcommand)]
command: license::LicenseCommands,
},
/// Manage IDA installations
Ida {
#[command(subcommand)]
command: ida_cmd::IdaCommands,
},
/// Manage IDA plugins
Plugin {
#[command(subcommand)]
command: plugin_cmd::PluginCommands,
},
/// Manage extensions
Extension {
#[command(subcommand)]
command: extension::ExtensionCommands,
},
/// Manage Knowledge Explorer
Ke {
#[command(subcommand)]
command: ke::KeCommands,
},
/// Low-level bucket asset operations
#[command(hide = true)]
Asset {
#[command(subcommand)]
command: asset_cmd::AssetCommands,
},
}