Skip to content

Commit fbc4236

Browse files
committed
copy scenarios
1 parent 0340488 commit fbc4236

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ COPY ./tests/bdd.rs ./tests/bdd.rs
2929

3030
COPY ./src ./src
3131
COPY ./crates ./crates
32+
COPY ./scenarios ./scenarios
3233

3334
# for ls output use BUILDKIT_PROGRESS=plain docker build .
3435
#RUN ls -la /app/ >&2

src/console/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ enum StackerCommands {
105105
/// OAuth provider code for browser login: gc (Google), gh (GitHub), … (default: gc)
106106
#[arg(long, value_name = "PROVIDER")]
107107
provider: Option<String>,
108+
/// Log in with username/password instead of browser OAuth (skips browser flow)
109+
#[arg(short = 'u', long, value_name = "EMAIL")]
110+
user: Option<String>,
108111
},
109112
/// Show the saved login and current project's recorded deploy identity
110113
Whoami {},
@@ -402,6 +405,7 @@ fn get_command(
402405
server_url,
403406
browser,
404407
provider,
408+
user,
405409
} => Ok(Box::new(
406410
stacker::console::commands::cli::login::LoginCommand::new(
407411
org,
@@ -410,6 +414,7 @@ fn get_command(
410414
server_url,
411415
browser,
412416
provider,
417+
user,
413418
),
414419
)),
415420
StackerCommands::Whoami {} => Ok(Box::new(
@@ -514,7 +519,7 @@ fn get_command(
514519
},
515520
StackerCommands::Ai { command: ai_cmd, write } => match ai_cmd {
516521
None => Ok(Box::new(
517-
stacker::console::commands::cli::ai::AiChatCommand::new(write),
522+
stacker::console::commands::cli::ai::AiChatCommand::new(write, None, None),
518523
)),
519524
Some(StackerAiCommands::Ask {
520525
question,

0 commit comments

Comments
 (0)