Skip to content

Commit

Permalink
implement fake select for default one
Browse files Browse the repository at this point in the history
  • Loading branch information
Milo123459 committed Aug 4, 2024
1 parent 3d1617c commit 22809fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ pub async fn command(args: Args, _json: bool) -> Result<()> {
return Err(RailwayError::EnvironmentNotFound(environment).into());
}
} else if project.environments.len() == 1 {
project.environments.first().unwrap().clone()
let env = project.environments.first().unwrap().clone();
fake_select("Select an environment", env.name.as_str());
env
} else {
prompt_options("Select an environment", project.environments)?
};
Expand Down

0 comments on commit 22809fb

Please sign in to comment.