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")
@ -187,4 +186,4 @@ fn main() {
} }
repository::generate(); repository::generate();
} }
} }

@ -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();
@ -29,4 +29,4 @@ pub fn build(pkg: String) {
.unwrap(); .unwrap();
env::set_current_dir(dir).unwrap(); env::set_current_dir(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;
@ -47,4 +47,4 @@ pub fn generate() {
.unwrap() .unwrap()
.wait() .wait()
.unwrap(); .unwrap();
} }

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

Loading…
Cancel
Save