pull: renamed command from *get* to *pull*
All checks were successful
CI / build (push) Successful in 1m41s

This commit is contained in:
2025-12-01 17:57:57 +01:00
parent 49f0ff004e
commit 4e7f447326
3 changed files with 29 additions and 29 deletions

View File

@@ -6,8 +6,7 @@ use clap::{Command, arg, command};
extern crate flate2;
mod get;
use get::get;
use pkh::pull::pull;
mod changelog;
use changelog::generate_entry;
@@ -30,8 +29,8 @@ fn main() {
.subcommand_required(true)
.disable_version_flag(true)
.subcommand(
Command::new("get")
.about("Get a source package from the archive or git")
Command::new("pull")
.about("Pull a source package from the archive or git")
.arg(
arg!(-s --series <series> "Target package distribution series").required(false),
)
@@ -53,7 +52,7 @@ fn main() {
.get_matches();
match matches.subcommand() {
Some(("get", sub_matches)) => {
Some(("pull", sub_matches)) => {
let package = sub_matches.get_one::<String>("package").expect("required");
let series = sub_matches.get_one::<String>("series").map(|s| s.as_str());
let dist = sub_matches.get_one::<String>("dist").map(|s| s.as_str());
@@ -66,10 +65,10 @@ fn main() {
.map(|s| s.as_str())
.unwrap_or("");
// Since get is async, we need to block on it
// Since pull is async, we need to block on it
let (pb, progress_callback) = ui::create_progress_bar(&multi);
if let Err(e) = rt.block_on(get(
if let Err(e) = rt.block_on(pull(
package,
version,
series,