Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

feat: add passthrough env var #231

Merged
merged 1 commit into from
Apr 24, 2024
Merged
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
5 changes: 5 additions & 0 deletions cli/src/commands/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ impl SubCommand {

let mut opengb_cmd = Command::new("opengb");

// Added to let OpenGB know its running as a passthrough command within Rivet. Shows more
// specialized help commands.
opengb_cmd.env("RIVET_CLI_PASSTHROUGH", "1");

// Parse env name from: rivet backend db deploy --env foo
if let Some(cmd) = db_command {
let env_name_id = &cmd.get_cmd().env_name_id;
Expand All @@ -115,6 +119,7 @@ impl SubCommand {
apis::ee_cloud_opengb_projects_envs_api::ee_cloud_opengb_projects_envs_list(
&ctx.openapi_config_cloud,
&project_id,
None,
)
.await?;

Expand Down
Loading