Conversation
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
rustfmt
[rustfmt] reported by reviewdog 🐶
juliaup/src/command_app_run.rs
Line 53 in bb3f735
[rustfmt] reported by reviewdog 🐶
Line 59 in bb3f735
[rustfmt] reported by reviewdog 🐶
Line 73 in bb3f735
[rustfmt] reported by reviewdog 🐶
Line 7 in bb3f735
[rustfmt] reported by reviewdog 🐶
Line 9 in bb3f735
[rustfmt] reported by reviewdog 🐶
Lines 229 to 233 in bb3f735
[rustfmt] reported by reviewdog 🐶
Line 239 in bb3f735
[rustfmt] reported by reviewdog 🐶
Lines 246 to 250 in bb3f735
[rustfmt] reported by reviewdog 🐶
Lines 280 to 281 in bb3f735
[rustfmt] reported by reviewdog 🐶
Line 283 in bb3f735
[rustfmt] reported by reviewdog 🐶
Line 285 in bb3f735
[rustfmt] reported by reviewdog 🐶
Lines 833 to 834 in bb3f735
| use juliaup::cli::{ApplicationSubCmd, ConfigSubCmd, Juliaup, OverrideSubCmd, SelfSubCmd}; | ||
| use juliaup::command_api::run_command_api; | ||
| use juliaup::command_app_register::run_command_app_register; | ||
| use juliaup::command_app_run::run_command_app_run; |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| use juliaup::command_app_run::run_command_app_run; |
| use juliaup::command_app_register::run_command_app_register; | ||
| use juliaup::command_app_run::run_command_app_run; | ||
| use juliaup::command_app_remove::run_command_app_remove; | ||
| use juliaup::command_completions::run_command_completions; |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| use juliaup::command_completions::run_command_completions; | |
| use juliaup::command_app_run::run_command_app_run; | |
| use juliaup::command_completions::run_command_completions; |
| ApplicationSubCmd::Register { value } => { | ||
| run_command_app_register(&value, &paths) | ||
| }, | ||
| ApplicationSubCmd::Run { name, args } => { | ||
| run_command_app_run(&name, &args, &paths) | ||
| }, | ||
| ApplicationSubCmd::Remove { name } => run_command_app_remove(&name, &paths) |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| ApplicationSubCmd::Register { value } => { | |
| run_command_app_register(&value, &paths) | |
| }, | |
| ApplicationSubCmd::Run { name, args } => { | |
| run_command_app_run(&name, &args, &paths) | |
| }, | |
| ApplicationSubCmd::Remove { name } => run_command_app_remove(&name, &paths) | |
| ApplicationSubCmd::Register { value } => run_command_app_register(&value, &paths), | |
| ApplicationSubCmd::Run { name, args } => run_command_app_run(&name, &args, &paths), | |
| ApplicationSubCmd::Remove { name } => run_command_app_remove(&name, &paths), |
| Register { | ||
| value: String | ||
| }, |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| Register { | |
| value: String | |
| }, | |
| Register { value: String }, |
| Run { | ||
| name: String, | ||
| args: Vec<String> | ||
| }, |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| Run { | |
| name: String, | |
| args: Vec<String> | |
| }, | |
| Run { name: String, args: Vec<String> }, |
| .flat_map(|i| match&i.1 { | ||
| JuliaupConfigApplication::DevedApplication { path, julia_version, julia_depot, execution_aliases } => execution_aliases.iter().map(|j| (j.0.clone(), (j.1.target.clone(), path.clone(), julia_version.clone(), julia_depot.clone()))) | ||
| }) | ||
| .map(|i| (i.0.clone(), (i.1.0.clone(), i.1.1.clone(), i.1.2.clone(), i.1.3.clone()))) |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| .map(|i| (i.0.clone(), (i.1.0.clone(), i.1.1.clone(), i.1.2.clone(), i.1.3.clone()))) |
|
|
||
| let target_path = foo.1.clone(); | ||
|
|
||
| let julia_binary_path = &paths.juliaupconfig |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| let julia_binary_path = &paths.juliaupconfig | |
| let julia_binary_path = &paths | |
| .juliaupconfig |
| let julia_binary_path = &paths.juliaupconfig | ||
| .parent() | ||
| .unwrap() // unwrap OK because there should always be a parent | ||
| .join(config_file.data.installed_versions.get(&foo.2).unwrap().path.clone()) |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| .join(config_file.data.installed_versions.get(&foo.2).unwrap().path.clone()) | |
| .join( | |
| config_file | |
| .data | |
| .installed_versions | |
| .get(&foo.2) | |
| .unwrap() | |
| .path | |
| .clone(), | |
| ) |
| .join(config_file.data.installed_versions.get(&foo.2).unwrap().path.clone()) | ||
| .join("bin") | ||
| .join(format!("julia{}", std::env::consts::EXE_SUFFIX)) | ||
| .normalize().unwrap(); |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| .normalize().unwrap(); | |
| .normalize() | |
| .unwrap(); |
|
|
||
| } | ||
| else { |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| } | |
| else { | |
| } else { |
| else { | ||
| println!("Could not find app."); | ||
| } | ||
| return Ok(()) |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| return Ok(()) | |
| return Ok(()); |
| #[derive(Serialize, Deserialize, Clone, PartialEq)] | ||
| pub struct JuliaupConfigExcutionAlias { | ||
| #[serde(rename = "Target")] | ||
| pub target: String |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| pub target: String | |
| pub target: String, |
| #[serde(rename = "JuliaDepot")] | ||
| julia_depot: String, | ||
| #[serde(rename = "ExecutionAliases")] | ||
| execution_aliases: HashMap<String, JuliaupConfigExcutionAlias> |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| execution_aliases: HashMap<String, JuliaupConfigExcutionAlias> | |
| execution_aliases: HashMap<String, JuliaupConfigExcutionAlias>, |
| pub mod command_add; | ||
| pub mod command_api; | ||
| pub mod command_app_register; | ||
| pub mod command_app_run; |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| pub mod command_app_run; |
| pub mod command_app_register; | ||
| pub mod command_app_run; | ||
| pub mod command_app_remove; | ||
| pub mod command_completions; |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| pub mod command_completions; | |
| pub mod command_app_run; | |
| pub mod command_completions; |
| JuliaupConfigApplication::DevedApplication { path: _, julia_version, julia_depot: _, execution_aliases: _ } => julia_version != installed_version | ||
| } ) { |
There was a problem hiding this comment.
[rustfmt] reported by reviewdog 🐶
| JuliaupConfigApplication::DevedApplication { path: _, julia_version, julia_depot: _, execution_aliases: _ } => julia_version != installed_version | |
| } ) { | |
| JuliaupConfigApplication::DevedApplication { | |
| path: _, | |
| julia_version, | |
| julia_depot: _, | |
| execution_aliases: _, | |
| } => julia_version != installed_version, | |
| }) { |
This is a more minimal implementation.