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]
|
[root]
|
||||||
name = "j"
|
name = "just"
|
||||||
version = "0.2.10"
|
version = "0.2.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"brev 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"clap 2.16.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "j"
|
name = "just"
|
||||||
version = "0.2.10"
|
version = "0.2.11"
|
||||||
authors = ["Casey Rodarmor <casey@rodarmor.com>"]
|
authors = ["Casey Rodarmor <casey@rodarmor.com>"]
|
||||||
license = "WTFPL/MIT/Apache-2.0"
|
license = "WTFPL/MIT/Apache-2.0"
|
||||||
description = "a command runner"
|
description = "a command runner"
|
||||||
homepage = "https://github.com/casey/j"
|
homepage = "https://github.com/casey/just"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
|
5
notes
5
notes
@ -3,7 +3,12 @@ todo
|
|||||||
|
|
||||||
- change name back to 'just', suggest j as alias
|
- change name back to 'just', suggest j as alias
|
||||||
|
|
||||||
|
- redirect j to just in crates.io
|
||||||
|
|
||||||
|
- include just.sh
|
||||||
|
|
||||||
- readme:
|
- readme:
|
||||||
|
. just a command runner or just do it just because
|
||||||
. link to docs, cargo badge, crates
|
. link to docs, cargo badge, crates
|
||||||
. start with an example justfile
|
. start with an example justfile
|
||||||
. make it clear it's beta, mention that, as a command runner
|
. make it clear it's beta, mention that, as a command runner
|
||||||
|
@ -22,10 +22,10 @@ macro_rules! die {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn app() {
|
pub fn app() {
|
||||||
let matches = App::new("j")
|
let matches = App::new("just")
|
||||||
.version("0.2.10")
|
.version("0.2.11")
|
||||||
.author("Casey Rodarmor <casey@rodarmor.com>")
|
.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")
|
.arg(Arg::with_name("list")
|
||||||
.short("l")
|
.short("l")
|
||||||
.long("list")
|
.long("list")
|
||||||
|
@ -17,12 +17,12 @@ fn integration_test(
|
|||||||
path.push("justfile");
|
path.push("justfile");
|
||||||
brev::dump(path, justfile);
|
brev::dump(path, justfile);
|
||||||
let mut binary = super::std::env::current_dir().unwrap();
|
let mut binary = super::std::env::current_dir().unwrap();
|
||||||
binary.push("./target/debug/j");
|
binary.push("./target/debug/just");
|
||||||
let output = Command::new(binary)
|
let output = Command::new(binary)
|
||||||
.current_dir(tmp.path())
|
.current_dir(tmp.path())
|
||||||
.args(args)
|
.args(args)
|
||||||
.output()
|
.output()
|
||||||
.expect("j invocation failed");
|
.expect("just invocation failed");
|
||||||
|
|
||||||
let mut failure = false;
|
let mut failure = false;
|
||||||
|
|
||||||
|
14
src/lib.rs
14
src/lib.rs
@ -243,7 +243,7 @@ impl<'a> Recipe<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let tmp = try!(
|
let tmp = try!(
|
||||||
tempdir::TempDir::new("j")
|
tempdir::TempDir::new("just")
|
||||||
.map_err(|error| RunError::TmpdirIoError{recipe: self.name, io_error: error})
|
.map_err(|error| RunError::TmpdirIoError{recipe: self.name, io_error: error})
|
||||||
);
|
);
|
||||||
let mut path = tmp.path().to_path_buf();
|
let mut path = tmp.path().to_path_buf();
|
||||||
@ -804,7 +804,7 @@ impl<'a> Display for Error<'a> {
|
|||||||
try!(writeln!(f, "unterminated string"));
|
try!(writeln!(f, "unterminated string"));
|
||||||
}
|
}
|
||||||
ErrorKind::InternalError{ref message} => {
|
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} => {
|
RunError::IoError{recipe, ref io_error} => {
|
||||||
try!(match io_error.kind() {
|
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::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 j could not run `sh`:\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),
|
_ => 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} => {
|
RunError::BacktickIoError{ref io_error} => {
|
||||||
try!(match io_error.kind() {
|
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::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 j could not run `sh`:\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),
|
_ => 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));
|
try!(write!(f, "backtick succeeded but stdout was not utf8: {}", utf8_error));
|
||||||
}
|
}
|
||||||
RunError::InternalError{ref message} => {
|
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() {
|
fn main() {
|
||||||
j::app();
|
just::app();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user