rkubectl_app/cli/command/
troubleshoot.rs1use super::*;
2
3pub use auth::Auth;
4pub use debug::Debug;
5
6mod auth;
7mod debug;
8
9#[derive(Clone, Debug, Subcommand)]
11pub enum TroubleshootingDebugging {
12 Describe,
14 Logs,
16 Attach,
18 Exec,
20 PortForward,
22 Proxy,
24 Cp,
26
27 #[command(subcommand)]
29 Auth(Auth),
30
31 Debug,
33 Events,
35}
36
37impl TroubleshootingDebugging {
38 pub async fn exec(self, context: &Context) -> RkResult<()> {
39 match self {
40 Self::Describe => Err(RkError::todo()),
41 Self::Logs => Err(RkError::todo()),
42 Self::Attach => Err(RkError::todo()),
43 Self::Exec => Err(RkError::todo()),
44 Self::PortForward => Err(RkError::todo()),
45 Self::Proxy => Err(RkError::todo()),
46 Self::Cp => Err(RkError::todo()),
47 Self::Auth(auth) => auth.exec(context).await,
48 Self::Debug => Err(RkError::todo()),
49 Self::Events => Err(RkError::todo()),
50 }
51 }
52}