File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ COPY ./tests/bdd.rs ./tests/bdd.rs
2929
3030COPY ./src ./src
3131COPY ./crates ./crates
32+ COPY ./scenarios ./scenarios
3233
3334# for ls output use BUILDKIT_PROGRESS=plain docker build .
3435# RUN ls -la /app/ >&2
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments