Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/main.rs"
async-trait = "0.1"
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
clap = { version = "4.5", features = ["std", "string"] }
cli-engine = { features = ["pkce-auth"], version = "0.1.2" }
cli-engine = { features = ["pkce-auth"], version = "0.1.3" }
fancy-regex = "0.14"
regex = { version = "1", features = ["std"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
Expand Down
10 changes: 9 additions & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod webhook;
use std::{process::ExitCode, sync::Arc};

use clap::Arg;
use cli_engine::{BuildInfo, Cli, CliConfig};
use cli_engine::{BuildInfo, Cli, CliConfig, NextAction};

use crate::env::get_env;

Expand Down Expand Up @@ -44,6 +44,14 @@ async fn main() -> ExitCode {
}
Ok(())
}))
.with_root_next_actions(Arc::new(|| {
vec![
NextAction::new("auth status", "Check authentication status"),
NextAction::new("env get", "Get the current active environment"),
NextAction::new("application list", "List all applications"),
NextAction::new("tree", "Display the full command tree"),
]
}))
.with_module(actions_catalog::module())
.with_module(api_explorer::module())
.with_module(application::module())
Expand Down
Loading