mirror of
https://github.com/casey/just.git
synced 2024-11-26 11:43:43 +03:00
Remove dependency on cradle (#2169)
This commit is contained in:
parent
0e8f660d6d
commit
71b72c4a53
10
Cargo.lock
generated
10
Cargo.lock
generated
@ -306,15 +306,6 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "cradle"
|
|
||||||
version = "0.2.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "7096122c1023d53de7298f322590170540ad3eba46bbc2750b495f098c27c09a"
|
|
||||||
dependencies = [
|
|
||||||
"rustversion",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crossbeam-deque"
|
name = "crossbeam-deque"
|
||||||
version = "0.8.5"
|
version = "0.8.5"
|
||||||
@ -609,7 +600,6 @@ dependencies = [
|
|||||||
"clap 4.5.7",
|
"clap 4.5.7",
|
||||||
"clap_complete",
|
"clap_complete",
|
||||||
"clap_mangen",
|
"clap_mangen",
|
||||||
"cradle",
|
|
||||||
"ctrlc",
|
"ctrlc",
|
||||||
"derivative",
|
"derivative",
|
||||||
"dirs",
|
"dirs",
|
||||||
|
@ -54,7 +54,6 @@ unicode-width = "0.1.0"
|
|||||||
uuid = { version = "1.0.0", features = ["v4"] }
|
uuid = { version = "1.0.0", features = ["v4"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cradle = "0.2.0"
|
|
||||||
executable-path = "1.0.0"
|
executable-path = "1.0.0"
|
||||||
pretty_assertions = "1.0.0"
|
pretty_assertions = "1.0.0"
|
||||||
temptree = "0.2.0"
|
temptree = "0.2.0"
|
||||||
|
@ -185,7 +185,13 @@ fn status_error() {
|
|||||||
"exit-2": "#!/usr/bin/env bash\nexit 2\n",
|
"exit-2": "#!/usr/bin/env bash\nexit 2\n",
|
||||||
};
|
};
|
||||||
|
|
||||||
("chmod", "+x", tmp.path().join("exit-2")).run();
|
let output = Command::new("chmod")
|
||||||
|
.arg("+x")
|
||||||
|
.arg(tmp.path().join("exit-2"))
|
||||||
|
.output()
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
assert!(output.status.success());
|
||||||
|
|
||||||
let path = env::join_paths(
|
let path = env::join_paths(
|
||||||
iter::once(tmp.path().to_owned()).chain(env::split_paths(&env::var_os("PATH").unwrap())),
|
iter::once(tmp.path().to_owned()).chain(env::split_paths(&env::var_os("PATH").unwrap())),
|
||||||
|
@ -64,7 +64,13 @@ fn status_error() {
|
|||||||
"exit-2": "#!/usr/bin/env bash\nexit 2\n",
|
"exit-2": "#!/usr/bin/env bash\nexit 2\n",
|
||||||
};
|
};
|
||||||
|
|
||||||
("chmod", "+x", tmp.path().join("exit-2")).run();
|
let output = Command::new("chmod")
|
||||||
|
.arg("+x")
|
||||||
|
.arg(tmp.path().join("exit-2"))
|
||||||
|
.output()
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
assert!(output.status.success());
|
||||||
|
|
||||||
let path = env::join_paths(
|
let path = env::join_paths(
|
||||||
iter::once(tmp.path().to_owned()).chain(env::split_paths(&env::var_os("PATH").unwrap())),
|
iter::once(tmp.path().to_owned()).chain(env::split_paths(&env::var_os("PATH").unwrap())),
|
||||||
|
@ -126,7 +126,13 @@ fn write_error() {
|
|||||||
|
|
||||||
let justfile_path = test.justfile_path();
|
let justfile_path = test.justfile_path();
|
||||||
|
|
||||||
("chmod", "400", &justfile_path).run();
|
let output = Command::new("chmod")
|
||||||
|
.arg("400")
|
||||||
|
.arg(&justfile_path)
|
||||||
|
.output()
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
assert!(output.status.success());
|
||||||
|
|
||||||
let _tempdir = test.run();
|
let _tempdir = test.run();
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ pub(crate) use {
|
|||||||
tempdir::tempdir,
|
tempdir::tempdir,
|
||||||
test::{assert_eval_eq, Output, Test},
|
test::{assert_eval_eq, Output, Test},
|
||||||
},
|
},
|
||||||
cradle::input::Input,
|
|
||||||
executable_path::executable_path,
|
executable_path::executable_path,
|
||||||
just::unindent,
|
just::unindent,
|
||||||
libc::{EXIT_FAILURE, EXIT_SUCCESS},
|
libc::{EXIT_FAILURE, EXIT_SUCCESS},
|
||||||
|
Loading…
Reference in New Issue
Block a user