a-kenji
cfd809581d
clan: fix backup provider completions
2024-06-07 19:16:13 +00:00
Qubasa
b54e072e9d
clan-cli: Fix passwordstore clan facts generate requiring CTRL+D for every secret
2024-06-05 14:31:45 +02:00
a-kenji
0c09fcbbda
clan: improve machine completions
...
In recent nix versions the `nix flake show` command busts the eval
cache, which made the function that used to be faster, slower.
On benchmarks the completion was around 180-200ms.
2024-06-05 13:32:23 +02:00
a-kenji
ece426f8b0
clan: fix backup description
2024-06-05 11:35:04 +02:00
a-kenji
1e6ea7344e
clan: add dynamic completions to clan backups providers
2024-06-05 09:23:02 +00:00
a-kenji
99008e1e3a
clan: add dynamic completion function for backup providers
2024-06-05 09:23:02 +00:00
Johannes Kirschbauer
5b9a73aef5
clan-api: wrap all api responses with error/success envelop type
2024-06-05 09:46:48 +02:00
Johannes Kirschbauer
2e70a884bb
clan-cli: create flake refactor to create clan
2024-06-05 09:45:47 +02:00
Johannes Kirschbauer
dfffb69321
clan-cli: refactor CmdOut to serializable dataclass
2024-06-05 09:44:44 +02:00
Johannes Kirschbauer
730cb913db
clan-api: add support for generic types & annotated types
2024-06-05 09:43:45 +02:00
a-kenji
3abe481316
clan: add dynamic completions to clan vms inspect
2024-06-04 15:50:50 +02:00
a-kenji
96f0ed1a8f
clan: add dynamic completions to clan vms run
2024-06-04 15:48:12 +02:00
a-kenji
3e1dbd5fbd
clan: add dynamic completions to clan config
2024-06-04 15:44:39 +02:00
a-kenji
996dc47da5
clan: add dynamic-completions to clan secrets set
2024-06-04 15:21:00 +02:00
a-kenji
755d7c6470
clan: add dynamic completions to clan secrets machines
2024-06-04 15:02:35 +02:00
a-kenji
6ab585da1f
clan: add dynamic completions for clan secrets import-sops
2024-06-04 13:40:24 +02:00
a-kenji
37b620257f
clan: add dynamic completions for secret groups
2024-06-04 13:30:38 +02:00
a-kenji
e2bf74ff27
clan: add dynamic completions for clan secrets users
2024-06-04 13:30:38 +02:00
a-kenji
10ab6f0155
clan: add dynamic completion for clan secret groups
2024-06-04 13:30:38 +02:00
a-kenji
43d2644a99
clan: add completion function for clan users
2024-06-04 13:30:11 +02:00
a-kenji
0661051baa
clan: clan secrets groups add machine completions
2024-06-04 13:30:11 +02:00
a-kenji
b9046cbae0
clan: fix help message
2024-06-04 10:28:34 +00:00
a-kenji
9b6a9f0515
clan: add more machine completion functions to secrets
2024-06-04 11:07:24 +02:00
a-kenji
cc401675fe
clan: add dyncamic completions for secrets
2024-06-03 21:47:14 +02:00
a-kenji
bda4e4302f
clan: add dynamic machine completions to clan secrets subcommands
2024-06-03 17:32:33 +02:00
a-kenji
4df6567915
clan: add dynamic completion to clan machines show
2024-06-03 17:06:03 +02:00
lassulus
05ed378199
Revert "clan-cli: cmd.py uses pseudo terminal now. Remove tty.py. Refactor password_store.py to use cmd.py."
...
This reverts commit 58f5bc0be0 .
2024-06-03 12:25:20 +02:00
lassulus
22cb1955e7
clan_cli secrets_upload: fix permissions
2024-06-03 10:52:18 +02:00
Qubasa
58f5bc0be0
clan-cli: cmd.py uses pseudo terminal now. Remove tty.py. Refactor password_store.py to use cmd.py.
2024-06-02 16:52:31 +02:00
Qubasa
cca39c4839
clan-cli: Refactor machines/update.py to cmd.run
2024-06-02 10:00:23 +02:00
Qubasa
44660056f1
clan-cli: Refactor subprocess.run to cmd.run. tea-create-pr: Fix missing fail-on-change for treefmt
2024-06-02 09:53:24 +02:00
clan-bot
2ac4294ff9
Merge pull request 'split list machines into show machine command' ( #1521 ) from machines-show into main
2024-05-31 15:00:03 +00:00
Jörg Thalheim
84f75de34c
split list machines into show machine command
2024-05-31 16:56:09 +02:00
a-kenji
a15286c709
clan: add dynamic completions for fact generation services
2024-05-31 15:21:07 +02:00
a-kenji
af0f628f35
clan: add completion timeout as static
2024-05-31 13:06:46 +02:00
a-kenji
32a20caad4
clan: add dynamic completions
...
Add dynamic completion scaffolding to the clan `cli`.
Also add a dynamic completion mechanism for machines for commands that
have machines as their sole argument.
More intricate dynamic completions will be implemented in follow up
PR's.
2024-05-31 12:55:41 +02:00
Jörg Thalheim
1b8ba590f7
make config command read-only
2024-05-29 13:17:55 +02:00
clan-bot
126954d3d2
Merge pull request 'fix offline build of flash command' ( #1491 ) from pass-nix-options into main
2024-05-29 10:49:15 +00:00
Jörg Thalheim
eb5fe2fe15
flash: make configuration more explicit
...
Injecting nixos configuration and potentially overriding settings a user
made and can cause surprises.
In most cases, users want to just make these option part of their NixOS
configuration and by having the rest in the command line
we make it more explicit what other configuration is being applied.
2024-05-29 12:45:50 +02:00
clan-bot
999178a764
Merge pull request 'Consistently pass nix options to underlying tools' ( #1488 ) from pass-nix-options into main
2024-05-29 08:25:53 +00:00
Jörg Thalheim
d002419ae7
drop global argparse flags
...
They get shadowed by subargparser options.
2024-05-29 10:21:35 +02:00
a-kenji
5729428e05
clan: clarify default backend
2024-05-29 10:17:22 +02:00
Jörg Thalheim
9362d8b42d
backup cli: make sure we have a flake
2024-05-29 10:14:14 +02:00
Jörg Thalheim
3bd7641a72
flash: add write-efi-boot-entries flag
2024-05-29 10:14:14 +02:00
Jörg Thalheim
fc3f65fb57
allow to override nix options in update/install/flash commands
2024-05-29 10:14:14 +02:00
a-kenji
ac50e989b2
clan: add epilog to facts subcommands
2024-05-29 10:10:23 +02:00
Jörg Thalheim
b4eaa3643f
cli: also register common flags in subcommands
...
When a user runs --help on a subcommand they don't see some options such
as --options or --flake. To fix this we now register all common flags
also in subcommands.
2024-05-29 09:29:49 +02:00
a-kenji
f0c5cbe27f
clan: add descriptions for reference documentation
2024-05-28 11:37:32 +02:00
a-kenji
12add74aae
clan: add run_no_stdout function suppressing stdout
...
Add the `run_no_stdout` function suppressing stdout by default.This
keeps the noise down on most commands, while still
stayingdebuggable.Stdout will be active when the `--debug` flag is
passed to the cli.
Fixes #1443
2024-05-28 11:13:55 +02:00
a-kenji
b379b3b1fd
clan: machines --help add examples to help output
2024-05-27 21:01:05 +02:00