Skip to content

Commit

Permalink
build: release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Oct 15, 2020
1 parent a7c42a5 commit 7b63cfb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "runtasktic"
version = "0.1.0"
version = "0.2.0"
authors = ["Jones Magloire @Joxit"]
description = "Command-line task management tool for execution of regular long sequential or parallel tasks."
edition = "2018"
Expand Down
7 changes: 5 additions & 2 deletions src/fst/dot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ mod test {
assert!(super::dot_write_file(&fst, &mut result).is_ok());
let result = std::str::from_utf8(&result).unwrap();
println!("{}", result);
assert_eq!(result, r#"digraph {
assert_eq!(
result,
r#"digraph {
a[label="\"a\"" shape=doublecircle]
a -> b_a_ba
a -> c
Expand All @@ -92,6 +94,7 @@ mod test {
c -> ds
ds[label="d%s" shape=circle]
}
"#);
"#
);
}
}
2 changes: 1 addition & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub mod traits;
pub mod traits;
7 changes: 5 additions & 2 deletions src/utils/traits/command_config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::fs::OpenOptions;
use std::process::{Command, Stdio};
use std::path::Path;
use std::process::{Command, Stdio};

pub trait CommandConfig {
fn working_dir(&mut self, dir: &Option<String>) -> Result<&mut Self, String>;
Expand All @@ -14,7 +14,10 @@ impl CommandConfig for Command {
if Path::new(d).is_dir() {
Ok(self.current_dir(d))
} else {
Err(format!("Invalid working directory: `{}` is not a directory", d))
Err(format!(
"Invalid working directory: `{}` is not a directory",
d
))
}
} else {
Ok(self)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/traits/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub(crate) use command_config::CommandConfig;

mod command_config;
mod command_config;
5 changes: 4 additions & 1 deletion tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ fn sample_yaml() {

assert_eq!(*config.notification(), None);
assert_eq!(config.concurrency(), -1);
assert_eq!(*config.working_dir(), Some(String::from("/custom/directory")));
assert_eq!(
*config.working_dir(),
Some(String::from("/custom/directory"))
);
assert_eq!(*config.stdout(), Some(String::from("none")));
assert_eq!(*config.stderr(), Some(String::from("none")));
assert_eq!(config.tasks().len(), 4);
Expand Down

0 comments on commit 7b63cfb

Please sign in to comment.