Commit graph

97 commits

Author SHA1 Message Date
Patrik Keller
bf690423ea Set error code > 0 when colmena exec fails 2024-01-15 15:02:20 +01:00
i1i1
95ded7fddb Add node filter to build and upload-keys 2023-10-23 14:31:30 -06:00
i1i1
495fc56f6e Remove some commands on some profiles and add default goal for apply 2023-10-23 14:31:30 -06:00
i1i1
5e17c629b2 Remove todo for deprecated alias (aliases are hiddin by default) 2023-10-23 14:23:06 -06:00
i1i1
303cf14fc6 Remove empty options for subcommands 2023-10-23 14:23:06 -06:00
i1i1
765a5d2ef3 Fix build and upload-keys 2023-10-23 14:23:06 -06:00
i1i1
935aa77e53 Initial support for clap derive up to the top 2023-10-23 14:23:06 -06:00
i1i1
1ad9301c62 Fix panic with hive path parsing and use value parser 2023-10-23 14:23:06 -06:00
i1i1
ce0782ccac Fix upload-keys command 2023-10-23 14:23:06 -06:00
i1i1
ed23d1da67 Convert repl arguments to type-safe clap derive 2023-10-23 14:23:06 -06:00
i1i1
d55555c1ed Convert nix-info arguments to type-safe clap derive 2023-10-23 14:23:06 -06:00
i1i1
367c253a47 Convert exec arguments to type-safe clap derive 2023-10-23 14:23:06 -06:00
i1i1
5b8611744b Convert eval arguments to type-safe clap derive 2023-10-23 14:23:06 -06:00
i1i1
cdfc1f15a1 Convert build arguments to type-safe clap derive 2023-10-23 14:23:06 -06:00
i1i1
87f4e3a676 Convert apply arguments to type-safe clap derive 2023-10-23 14:23:06 -06:00
i1i1
b80b57cb48 Convert apply-local arguments to type-safe clap derive 2023-10-23 14:23:06 -06:00
i1i1
1e38582451 Parse value for NodeFilter with clap 2023-10-23 14:23:06 -06:00
i1i1
21df0ac5a5 Use clap for parsing Hive arguments 2023-10-23 14:23:06 -06:00
i1i1
9ddc53136a Add trait implementations for Goal 2023-10-23 14:23:06 -06:00
Zhaofeng Li
8d92dadb32 cargo clippy --all-targets --fix
Suggested in #169, I just ran it myself.

Co-authored-by: i1i1 <vanyarybin1@live.ru>
2023-10-18 15:41:54 -06:00
ThinkChaos
90c88ddd17 refactor: rename NixOptions to NixFlags
This helps differentiate in the code Nix's `--option` and other CLI
flags (previously referred to as options).
2022-11-13 16:53:04 -07:00
ThinkChaos
d73fa5d74f cli: Explicit value_name for --node to be all caps like others 2022-11-13 16:53:04 -07:00
Zhaofeng Li
2efa8d26c1 eval: Fix rustfmt 2022-10-29 02:36:11 -06:00
Zhaofeng Li
f6c13a20c3 eval: Use correct value parser for expression_file
Fallout from Clap 4.0 migration.
2022-10-29 02:24:57 -06:00
Zhaofeng Li
872949504b Migrate to Clap 4.0
It was kind of a bumpy experience. Gradual migration to the Derive API
is coming soon.
2022-10-09 15:26:37 -06:00
Zhaofeng Li
52b594a167 apply: Run rustfmt 2022-09-01 18:49:11 -06:00
Zhaofeng Li
3af3751d8e apply: Default to the "boot" goal if --reboot is passed
Fixes #113.
2022-09-01 18:42:37 -06:00
Zhaofeng Li
3fbc5eeb11 repl: Add arguments depending on Nix version 2022-08-17 11:56:30 -06:00
Zhaofeng Li
741d5c4fbb repl: Use a temporary file for the expression
This makes it compatible with Nix 2.3+.
2022-08-17 11:56:30 -06:00
Zhaofeng Li
c540e00861 Add repl subcommand
Fixes #115.
2022-08-16 20:16:00 -06:00
Zhaofeng Li
11add6501e exec: Set label width in output 2022-08-16 20:16:00 -06:00
Zhaofeng Li
68d0036a2c Thanks clippy 2022-08-16 20:16:00 -06:00
Zhaofeng Li
62a3d1e6f8 Run rustfmt 2022-07-29 22:13:09 -07:00
NeverBehave
dfe55ed461 fix: rename no-substitutes -> no-substitute
Fixes #59.
2022-07-01 16:06:01 -07:00
Zhaofeng Li
432d4212fc apply: Don't enforce meta.allowApplyAll for builds
Fixes #99.
2022-06-24 17:34:37 -07:00
NeverBehave
dd7a2924ca feat(meta): add disallowApplyAll options
unify meta access for machinesFile

update release note and config name
2022-06-20 18:47:53 -07:00
Zhaofeng Li
ca12be27ed apply-local: Escalate privileges only during activation
Fixes #85.
2022-06-03 23:51:32 -07:00
Zhaofeng Li
4037b61a2b apply: Fix typo in help 2022-06-03 23:51:32 -07:00
Zhaofeng Li
1be16d552d apply: Add --reboot flag
Fixes #46.
2022-05-22 02:15:33 -07:00
Zhaofeng Li
ab754ac2e3 Squelch dead code warnings on non-Linux platforms (aka macOS) 2022-04-19 00:29:35 -07:00
Zhaofeng Li
26b2203da9 Update deps 2022-03-07 22:02:04 -08:00
Glenn McDonald
9c179b0db8
apply_local: Fix nixos detection from os-release (#63) 2022-03-07 20:52:22 -08:00
Zhaofeng Li
856f82644e apply_local: Fix argument name typo
Caught by debug assertions in clap 3.0. We should switch to the Derive
API where possible to prevent this from happening in the future.
2022-01-27 18:48:25 -08:00
Zhaofeng Li
87189ec3df nix_info: Display pinned nix-eval-jobs path 2022-01-22 17:50:53 -08:00
Zhaofeng Li
cf9a72a1d4 nix: Add initial nix-eval-job integration
A DrvSetEvaluator is able to evaluate attribute sets of derivations,
streaming results as they come in.
2022-01-22 17:50:53 -08:00
Zhaofeng Li
deca292b53 Refactor NixOptions 2022-01-08 01:20:36 -08:00
Zhaofeng Li
31fd1e49ac Move nix::{NixResult, NixError} to error::{ColmenaResult, ColmenaError} 2022-01-08 01:20:36 -08:00
Zhaofeng Li
da7907c874 General code cleanup 2022-01-05 14:01:05 -08:00
Zhaofeng Li
d2762757f0 command/eval: Fix introspect alias
On clap 3.0, resetting the App::name still causes clap to complain
that the subcommand doesn't exist in debug mode.
2022-01-03 10:37:03 -08:00
Zhaofeng Li
79d1010356 command: Change wording for consistency 2022-01-03 10:37:03 -08:00