mirror of
https://github.com/casey/just.git
synced 2024-11-23 02:44:56 +03:00
Remove dependency on brev, bump version
This commit is contained in:
parent
3b78451f23
commit
696fd3a5f1
@ -1,10 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "j"
|
name = "j"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
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/j"
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
brev = "0.1.6"
|
|
||||||
|
16
src/main.rs
16
src/main.rs
@ -1,5 +1,17 @@
|
|||||||
#[macro_use]
|
macro_rules! warn {
|
||||||
extern crate brev;
|
($($arg:tt)*) => {{
|
||||||
|
extern crate std;
|
||||||
|
use std::io::prelude::*;
|
||||||
|
let _ = writeln!(&mut std::io::stderr(), $($arg)*);
|
||||||
|
}};
|
||||||
|
}
|
||||||
|
macro_rules! die {
|
||||||
|
($($arg:tt)*) => {{
|
||||||
|
extern crate std;
|
||||||
|
warn!($($arg)*);
|
||||||
|
std::process::exit(-1)
|
||||||
|
}};
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Clone, Copy)]
|
#[derive(PartialEq, Clone, Copy)]
|
||||||
enum Make {
|
enum Make {
|
||||||
|
Loading…
Reference in New Issue
Block a user