git.delta.rocks / jrsonnet / refs/commits / 2e7f8f868321

difftreelog

style reorder command construction arguments

Yaroslav Bolyukin2020-11-30parent: #b05f317.patch.diff
in: trunk

1 file changed

modifiedsrc/db/keys.rsdiffbeforeafterboth
1111
12pub fn list_hosts() -> Result<Vec<String>> {12pub fn list_hosts() -> Result<Vec<String>> {
13 Ok(Command::new("nix")13 Ok(Command::new("nix")
14 .inherit_stdio()
15 .arg("eval")
16 .arg(HOSTS_ATTRIBUTE)
17 .arg("--apply")14 .args(&[
15 "eval",
16 HOSTS_ATTRIBUTE,
17 "--apply",
18 "builtins.attrNames",
19 "--json",
20 ])
18 .arg("builtins.attrNames")21 .inherit_stdio()
19 .run_json()?)22 .run_json()?)
20}23}
2124