Skip to content

Commit 463375f

Browse files
committed
fix(bolt): add forwarded and persistent db shells
1 parent 35472d7 commit 463375f

File tree

5 files changed

+360
-279
lines changed

5 files changed

+360
-279
lines changed

lib/bolt/cli/src/commands/db/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,25 @@ pub enum SubCommand {
1616
service: String,
1717
#[clap(short = 'q', long)]
1818
query: Option<String>,
19+
#[clap(short = 'p', long)]
20+
use_pod: bool,
1921
},
2022
}
2123

2224
impl SubCommand {
2325
pub async fn execute(self, ctx: ProjectContext) -> Result<()> {
2426
match self {
2527
Self::Migrate { command } => command.execute(ctx).await,
26-
Self::Shell { service, query } => {
28+
Self::Shell {
29+
service,
30+
query,
31+
use_pod,
32+
} => {
2733
tasks::db::shell(
2834
&ctx,
2935
&ctx.service_with_name(&service).await,
3036
query.as_deref(),
37+
use_pod,
3138
)
3239
.await?;
3340

0 commit comments

Comments
 (0)