]> git.proxmox.com Git - rustc.git/blob - src/tools/cargo/src/bin/cargo/commands/generate_lockfile.rs
New upstream version 1.70.0+dfsg2
[rustc.git] / src / tools / cargo / src / bin / cargo / commands / generate_lockfile.rs
1 use crate::command_prelude::*;
2
3 use cargo::ops;
4
5 pub fn cli() -> Command {
6 subcommand("generate-lockfile")
7 .about("Generate the lockfile for a package")
8 .arg_quiet()
9 .arg_manifest_path()
10 .after_help("Run `cargo help generate-lockfile` for more detailed information.\n")
11 }
12
13 pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
14 let ws = args.workspace(config)?;
15 ops::generate_lockfile(&ws)?;
16 Ok(())
17 }