From 9e9b525369904f8a905752975e1e4660aedc3a45 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 30 Oct 2016 18:12:59 -0700 Subject: [PATCH] Bump version to 0.2.11 and rename back to just --- Cargo.lock | 4 ++-- Cargo.toml | 6 +++--- notes | 5 +++++ src/app.rs | 6 +++--- src/integration.rs | 4 ++-- src/lib.rs | 14 +++++++------- src/main.rs | 4 ++-- 7 files changed, 24 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 477175a..2503af6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] -name = "j" -version = "0.2.10" +name = "just" +version = "0.2.11" dependencies = [ "brev 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.16.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 39eab85..ac80dac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "j" -version = "0.2.10" +name = "just" +version = "0.2.11" authors = ["Casey Rodarmor "] license = "WTFPL/MIT/Apache-2.0" description = "a command runner" -homepage = "https://github.com/casey/j" +homepage = "https://github.com/casey/just" [dependencies] diff --git a/notes b/notes index 610dae0..4eb3d83 100644 --- a/notes +++ b/notes @@ -3,7 +3,12 @@ todo - change name back to 'just', suggest j as alias +- redirect j to just in crates.io + +- include just.sh + - readme: + . just a command runner or just do it just because . link to docs, cargo badge, crates . start with an example justfile . make it clear it's beta, mention that, as a command runner diff --git a/src/app.rs b/src/app.rs index 1afc993..91acdd3 100644 --- a/src/app.rs +++ b/src/app.rs @@ -22,10 +22,10 @@ macro_rules! die { } pub fn app() { - let matches = App::new("j") - .version("0.2.10") + let matches = App::new("just") + .version("0.2.11") .author("Casey Rodarmor ") - .about("Just a command runner - https://github.com/casey/j") + .about("Just a command runner - https://github.com/casey/just") .arg(Arg::with_name("list") .short("l") .long("list") diff --git a/src/integration.rs b/src/integration.rs index a2a8558..e21ca04 100644 --- a/src/integration.rs +++ b/src/integration.rs @@ -17,12 +17,12 @@ fn integration_test( path.push("justfile"); brev::dump(path, justfile); let mut binary = super::std::env::current_dir().unwrap(); - binary.push("./target/debug/j"); + binary.push("./target/debug/just"); let output = Command::new(binary) .current_dir(tmp.path()) .args(args) .output() - .expect("j invocation failed"); + .expect("just invocation failed"); let mut failure = false; diff --git a/src/lib.rs b/src/lib.rs index 0fec722..37ffbbe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -243,7 +243,7 @@ impl<'a> Recipe<'a> { } let tmp = try!( - tempdir::TempDir::new("j") + tempdir::TempDir::new("just") .map_err(|error| RunError::TmpdirIoError{recipe: self.name, io_error: error}) ); let mut path = tmp.path().to_path_buf(); @@ -804,7 +804,7 @@ impl<'a> Display for Error<'a> { try!(writeln!(f, "unterminated string")); } ErrorKind::InternalError{ref message} => { - try!(writeln!(f, "internal error, this may indicate a bug in j: {}\n consider filing an issue: https://github.com/casey/j/issues/new", message)); + try!(writeln!(f, "internal error, this may indicate a bug in just: {}\n consider filing an issue: https://github.com/casey/just/issues/new", message)); } } @@ -1015,8 +1015,8 @@ impl<'a> Display for RunError<'a> { }, RunError::IoError{recipe, ref io_error} => { try!(match io_error.kind() { - io::ErrorKind::NotFound => write!(f, "Recipe \"{}\" could not be run because j could not find `sh` the command:\n{}", recipe, io_error), - io::ErrorKind::PermissionDenied => write!(f, "Recipe \"{}\" could not be run because j could not run `sh`:\n{}", recipe, io_error), + io::ErrorKind::NotFound => write!(f, "Recipe \"{}\" could not be run because just could not find `sh` the command:\n{}", recipe, io_error), + io::ErrorKind::PermissionDenied => write!(f, "Recipe \"{}\" could not be run because just could not run `sh`:\n{}", recipe, io_error), _ => write!(f, "Recipe \"{}\" could not be run because of an IO error while launching `sh`:\n{}", recipe, io_error), }); }, @@ -1046,8 +1046,8 @@ impl<'a> Display for RunError<'a> { } RunError::BacktickIoError{ref io_error} => { try!(match io_error.kind() { - io::ErrorKind::NotFound => write!(f, "backtick could not be run because j could not find `sh` the command:\n{}", io_error), - io::ErrorKind::PermissionDenied => write!(f, "backtick could not be run because j could not run `sh`:\n{}", io_error), + io::ErrorKind::NotFound => write!(f, "backtick could not be run because just could not find `sh` the command:\n{}", io_error), + io::ErrorKind::PermissionDenied => write!(f, "backtick could not be run because just could not run `sh`:\n{}", io_error), _ => write!(f, "backtick could not be run because of an IO error while launching `sh`:\n{}", io_error), }); } @@ -1055,7 +1055,7 @@ impl<'a> Display for RunError<'a> { try!(write!(f, "backtick succeeded but stdout was not utf8: {}", utf8_error)); } RunError::InternalError{ref message} => { - try!(write!(f, "internal error, this may indicate a bug in j: {}\n consider filing an issue: https://github.com/casey/j/issues/new", message)); + try!(write!(f, "internal error, this may indicate a bug in just: {}\n consider filing an issue: https://github.com/casey/just/issues/new", message)); } } diff --git a/src/main.rs b/src/main.rs index afae0f5..ae6b10f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ -extern crate j; +extern crate just; fn main() { - j::app(); + just::app(); }