michal 3 years ago
parent a9175a392f
commit 96c8a69681

@ -48,8 +48,7 @@ fn main() {
), ),
) )
.subcommand( .subcommand(
SubCommand::with_name("repo-gen") SubCommand::with_name("repo-gen").about("Generates repository from build packages"),
.about("Generates repository from build packages")
) )
.subcommand( .subcommand(
SubCommand::with_name("prune") SubCommand::with_name("prune")

@ -5,4 +5,6 @@ pub fn build(pkg: String) {
package::build(pkg); 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::path::Path;
use std::process::Command; use std::process::Command;
use std::{env, fs};
pub fn build(pkg: String) { pub fn build(pkg: String) {
let dir = env::current_dir().unwrap(); let dir = env::current_dir().unwrap();

@ -1,6 +1,6 @@
use std::{env, fs};
use std::path::Path; use std::path::Path;
use std::process::Command; use std::process::Command;
use std::{env, fs};
use crate::workspace::read_cfg; use crate::workspace::read_cfg;

Loading…
Cancel
Save