@ -48,8 +48,7 @@ fn main() {
),
)
.subcommand(
SubCommand::with_name("repo-gen")
SubCommand::with_name("repo-gen").about("Generates repository from build packages"),
.about("Generates repository from build packages")
SubCommand::with_name("prune")
@ -5,4 +5,6 @@ pub fn build(pkg: String) {
package::build(pkg);
}
pub fn generate() { repo::generate(); }
pub fn generate() {
repo::generate();
@ -1,6 +1,6 @@
use std::{env, fs};
use std::path::Path;
use std::process::Command;
pub fn build(pkg: String) {
let dir = env::current_dir().unwrap();
use crate::workspace::read_cfg;