Skip to content

Commit bcce188

Browse files
committed
all: move nh-{command, installable, passthrough, util} into nh-core
1 parent b254f0e commit bcce188

File tree

31 files changed

+316
-492
lines changed

31 files changed

+316
-492
lines changed

Cargo.lock

Lines changed: 24 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,12 @@ humantime = "2.3.0"
2424
inquire = { default-features = false, features = [ "crossterm" ], version = "0.9.1" }
2525
nh = { path = "crates/nh" }
2626
nh-clean = { path = "crates/nh-clean" }
27-
nh-command = { path = "crates/nh-command" }
2827
nh-core = { path = "crates/nh-core" }
2928
nh-darwin = { path = "crates/nh-darwin" }
3029
nh-home = { path = "crates/nh-home" }
31-
nh-installable = { path = "crates/nh-installable" }
3230
nh-nixos = { path = "crates/nh-nixos" }
33-
nh-passthrough = { path = "crates/nh-passthrough" }
3431
nh-remote = { path = "crates/nh-remote" }
3532
nh-search = { path = "crates/nh-search" }
36-
nh-util = { path = "crates/nh-util" }
3733
nix = { default-features = false, features = [ "fs", "user", "hostname" ], version = "0.31.1" }
3834
proptest = "1.9.0"
3935
regex = "1.12.2"

crates/nh-clean/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ clap.workspace = true
1717
color-eyre.workspace = true
1818
humantime.workspace = true
1919
inquire.workspace = true
20-
nh-command.workspace = true
21-
nh-util.workspace = true
2220
nix.workspace = true
2321
regex.workspace = true
22+
nh-core.workspace = true
2423
tracing.workspace = true
2524
yansi.workspace = true

crates/nh-clean/src/clean.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use color_eyre::{
1212
eyre::{Context, ContextCompat, bail, eyre},
1313
};
1414
use inquire::Confirm;
15-
use nh_command::{Command, ElevationStrategy};
15+
use nh_core::command::{Command, ElevationStrategy};
1616
use nix::{
1717
errno::Errno,
1818
fcntl::AtFlags,
@@ -96,7 +96,7 @@ impl args::CleanMode {
9696
},
9797
Self::All(args) => {
9898
if !uid.is_root() {
99-
nh_util::self_elevate(elevate);
99+
nh_core::util::self_elevate(elevate);
100100
}
101101

102102
let paths_to_check = [

crates/nh-command/Cargo.toml

Lines changed: 0 additions & 26 deletions
This file was deleted.

crates/nh-core/Cargo.toml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,20 @@ workspace = true
1212
[dependencies]
1313
clap.workspace = true
1414
color-eyre.workspace = true
15-
nh-installable.workspace = true
16-
nh-passthrough.workspace = true
17-
nh-util.workspace = true
1815
proptest.workspace = true
16+
secrecy.workspace = true
17+
tempfile.workspace = true
18+
subprocess.workspace = true
19+
thiserror.workspace = true
20+
which.workspace = true
21+
shlex.workspace = true
22+
inquire.workspace = true
23+
regex.workspace = true
24+
nix.workspace = true
25+
dix.workspace = true
1926
semver.workspace = true
2027
serde_json.workspace = true
2128
serial_test.workspace = true
2229
tracing.workspace = true
30+
31+
yansi.workspace = true

0 commit comments

Comments
 (0)