MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / run_watch

Method run_watch

crates/cargo-lambda-cli/src/main.rs:163–188  ·  view source on GitHub ↗
(
        watch: Watch,
        color: &str,
        global: Option<PathBuf>,
        context: Option<String>,
        admerge: bool,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
load_metadataFunction · 0.85
load_configFunction · 0.85
runFunction · 0.50
pkg_nameMethod · 0.45
bin_nameMethod · 0.45
manifest_pathMethod · 0.45

Tested by

no test coverage detected