Bump version to 0.2.11 and rename back to just
This commit is contained in:
parent
686074df0e
commit
9e9b525369
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -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)",
|
||||
|
@ -1,10 +1,10 @@
|
||||
[package]
|
||||
name = "j"
|
||||
version = "0.2.10"
|
||||
name = "just"
|
||||
version = "0.2.11"
|
||||
authors = ["Casey Rodarmor <casey@rodarmor.com>"]
|
||||
license = "WTFPL/MIT/Apache-2.0"
|
||||
description = "a command runner"
|
||||
homepage = "https://github.com/casey/j"
|
||||
homepage = "https://github.com/casey/just"
|
||||
|
||||
[dependencies]
|
||||
|
||||
|
5
notes
5
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
|
||||
|
@ -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 <casey@rodarmor.com>")
|
||||
.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")
|
||||
|
@ -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;
|
||||
|
||||
|
14
src/lib.rs
14
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
extern crate j;
|
||||
extern crate just;
|
||||
|
||||
fn main() {
|
||||
j::app();
|
||||
just::app();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user