(
watch: Watch,
color: &str,
global: Option<PathBuf>,
context: Option<String>,
admerge: bool,
)
| 161 | } |
| 162 | |
| 163 | async fn run_watch( |
| 164 | watch: Watch, |
| 165 | color: &str, |
| 166 | global: Option<PathBuf>, |
| 167 | context: Option<String>, |
| 168 | admerge: bool, |
| 169 | ) -> Result<()> { |
| 170 | let options = ConfigOptions { |
| 171 | names: FunctionNames::new(watch.pkg_name(), watch.bin_name()), |
| 172 | context, |
| 173 | global, |
| 174 | admerge, |
| 175 | }; |
| 176 | |
| 177 | let metadata = load_metadata( |
| 178 | watch.manifest_path(), |
| 179 | watch.cargo_opts.common.target_dir.as_deref(), |
| 180 | )?; |
| 181 | let args_config = Config { |
| 182 | watch, |
| 183 | ..Default::default() |
| 184 | }; |
| 185 | |
| 186 | let config = load_config(&args_config, &metadata, &options)?; |
| 187 | cargo_lambda_watch::run(&config.watch, &config.env, &metadata, color).await |
| 188 | } |
| 189 | |
| 190 | async fn run_deploy( |
| 191 | deploy: Deploy, |
nothing calls this directly
no test coverage detected