Skip to content

Commit

Permalink
fix return type for that function i just fucked with
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeyh021 committed Dec 22, 2022
1 parent 938f92c commit 2cedba9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dcspkg/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ impl Command {
//list all the packages to stdout
List { json } => {
let packages = list(config.server.url)?;
print_package_list(&packages, *json).context("Cannot format package list")
print_package_list(&packages, *json);
Ok(())
}
//install a package
Install { package } => install(
Expand All @@ -59,7 +60,8 @@ impl Command {
//list what we have installed
Installed { json } => {
let packages = get_registry(&config.registry.registry_file)?;
print_package_list(&packages, *json).context("Cannot format package list")
print_package_list(&packages, *json);
Ok(())
}

//run an executable from a package
Expand Down

0 comments on commit 2cedba9

Please sign in to comment.