File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use crate::{
55 auth:: { login, login_read_only} ,
66 config,
77 http:: ApiClient ,
8- ui:: { is_interactive, select_project_interactive } ,
8+ ui:: { is_interactive, select_project } ,
99} ;
1010
1111use super :: api:: { get_project_by_name, Project } ;
@@ -29,7 +29,7 @@ pub(crate) async fn resolve_project_context(
2929 let config_project = config:: load ( ) . ok ( ) . and_then ( |c| c. project ) ;
3030 let project_name = match base. project . as_deref ( ) . or ( config_project. as_deref ( ) ) {
3131 Some ( p) => p. to_string ( ) ,
32- None if is_interactive ( ) => select_project_interactive ( & client, None ) . await ?,
32+ None if is_interactive ( ) => select_project ( & client, None , None ) . await ?. name ,
3333 None => bail ! ( "--project required (or set BRAINTRUST_DEFAULT_PROJECT)" ) ,
3434 } ;
3535 let project = get_project_by_name ( & client, & project_name)
You can’t perform that action at this time.
0 commit comments