michal 3 years ago
parent a9175a392f
commit 96c8a69681

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

@ -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;
use std::{env, fs};
pub fn build(pkg: String) {
let dir = env::current_dir().unwrap();
@ -29,4 +29,4 @@ pub fn build(pkg: String) {
.unwrap();
env::set_current_dir(dir).unwrap();
}
}

@ -1,6 +1,6 @@
use std::{env, fs};
use std::path::Path;
use std::process::Command;
use std::{env, fs};
use crate::workspace::read_cfg;
@ -47,4 +47,4 @@ pub fn generate() {
.unwrap()
.wait()
.unwrap();
}
}

@ -12,4 +12,4 @@ pub fn read_cfg() -> Config {
let config: Config = toml::from_str(&file).unwrap();
config
}
}

Loading…
Cancel
Save