a-kenji
533ed97fc1
clan: add dynamic completion for clan secret groups
2024-06-04 13:30:38 +02:00
a-kenji
e7e5a1ded8
clan: add completion function for clan users
2024-06-04 13:30:11 +02:00
a-kenji
4e95030e55
clan: clan secrets groups add machine completions
2024-06-04 13:30:11 +02:00
a-kenji
2923051a12
clan: fix help message
2024-06-04 10:28:34 +00:00
a-kenji
addc4de735
clan: add more machine completion functions to secrets
2024-06-04 11:07:24 +02:00
a-kenji
31eca9e8bc
clan: add dyncamic completions for secrets
2024-06-03 21:47:14 +02:00
a-kenji
cfb78b0edb
clan: add dynamic machine completions to clan secrets subcommands
2024-06-03 17:32:33 +02:00
a-kenji
e8241fb7c9
clan: add dynamic completion to clan machines show
2024-06-03 17:06:03 +02:00
lassulus
578162425d
Revert "clan-cli: cmd.py uses pseudo terminal now. Remove tty.py. Refactor password_store.py to use cmd.py."
...
This reverts commit ba86b49952 .
2024-06-03 12:25:20 +02:00
lassulus
da8a733899
clan_cli secrets_upload: fix permissions
2024-06-03 10:52:18 +02:00
Qubasa
ba86b49952
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
d513f66170
clan-cli: Refactor machines/update.py to cmd.run
2024-06-02 10:00:23 +02:00
Qubasa
1a39957dbb
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
481f926b17
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
788eae432a
split list machines into show machine command
2024-05-31 16:56:09 +02:00
a-kenji
bcccf301f0
clan: add dynamic completions for fact generation services
2024-05-31 15:21:07 +02:00
a-kenji
d31aa7cf88
clan: add completion timeout as static
2024-05-31 13:06:46 +02:00
a-kenji
23ef39a2d9
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
c1e2bc9ea9
make config command read-only
2024-05-29 13:17:55 +02:00
clan-bot
7e087d18ee
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
750b6aec59
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
d138e29a53
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
f0f97baa65
drop global argparse flags
...
They get shadowed by subargparser options.
2024-05-29 10:21:35 +02:00
a-kenji
c2dc94507e
clan: clarify default backend
2024-05-29 10:17:22 +02:00
Jörg Thalheim
5dcac604d1
backup cli: make sure we have a flake
2024-05-29 10:14:14 +02:00
Jörg Thalheim
96746b7c98
flash: add write-efi-boot-entries flag
2024-05-29 10:14:14 +02:00
Jörg Thalheim
2ae50b7398
allow to override nix options in update/install/flash commands
2024-05-29 10:14:14 +02:00
a-kenji
3c905c5072
clan: add epilog to facts subcommands
2024-05-29 10:10:23 +02:00
Jörg Thalheim
5b926f57cc
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
c34664429c
clan: add descriptions for reference documentation
2024-05-28 11:37:32 +02:00
a-kenji
eee99730d1
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
d1591d4485
clan: machines --help add examples to help output
2024-05-27 21:01:05 +02:00
a-kenji
ec9f605004
clan: duplicate description field for generation of the reference documentation
2024-05-27 20:29:34 +02:00
a-kenji
efacb7f184
clan: ssh --help add examples
...
Add examples to the output of `clan ssh --help`.
2024-05-27 20:14:37 +02:00
a-kenji
a704a05b15
clan: rename cLan to clan
2024-05-27 19:52:51 +02:00
Jörg Thalheim
c0a54f539a
consistent rename cLAN -> Clan
2024-05-27 13:58:32 +00:00
a-kenji
e8bd5ad24b
clan: add examples and description to most help
...
Add examples and description to most toplevel help outputs.
2024-05-27 14:33:58 +02:00
Jörg Thalheim
64adf17368
drop offline in nix shell
...
Otherwise we become gentoo!
2024-05-27 13:40:11 +02:00
a-kenji
6d7849a03c
clan: fix description of cli tool
2024-05-27 11:51:25 +02:00
a-kenji
81e0700826
clan: facts generate allow regeneration of facts
...
Add `--regenerate` flag to `clan facts generate` which allows forcing
the generation of facts, regardless of their current existence.
Examples:
```
clan facts generate [MACHINE] --regenerate
```
or
```
clan facts generate [MACHINE] --service [SERVICE] --regenerate
```
2024-05-26 22:55:48 +02:00
clan-bot
4daf036a3c
Merge pull request 'clan: facts generate specific service' ( #1446 ) from a-kenji-feat/clan/facts-generate-service-1395 into main
2024-05-26 19:57:17 +00:00
a-kenji
4faab0a20f
clan: facts generate specific service
...
Add `--service` flag to the `clan` cli which allows specifying a certain
service to be generated.
Example:
```
clan facts generate [MACHINE] --service [SERVICE]
```
Fixes #1395
2024-05-26 21:52:56 +02:00
clan-bot
b0d5ef01ca
Merge pull request 'Api: init response envelop' ( #1444 ) from hsjobeki-feat/api-improvements into main
2024-05-26 16:08:02 +00:00
Johannes Kirschbauer
ab656d5655
API: handle functions with multiple arguments
2024-05-26 18:04:49 +02:00
Johannes Kirschbauer
ed171f0264
Api: init response envelop
2024-05-26 15:57:10 +02:00
clan-bot
270f9d54cb
Merge pull request 'clan: fix clan facts list [MACHINE]' ( #1442 ) from a-kenji-fix/clan-facts-list into main
2024-05-26 12:29:37 +00:00
a-kenji
73f486fe13
clan: fix clan facts list [MACHINE]
...
Fix `clan facts list [MACHINE]`.
The get command returned a dictionary of bytestrings.
We now convert them to strings.
2024-05-26 14:26:08 +02:00
Johannes Kirschbauer
522fd1bcaa
api: convert name casing
2024-05-26 13:54:21 +02:00
Johannes Kirschbauer
691ae9fb15
api: improve message serialisation
2024-05-26 13:40:47 +02:00
a-kenji
9bb6ed313f
clan machines list: reduce noise
...
Don't log nix error output by default on `clan machines list`.
Log it, if `--debug` is passed.
Fixes #1115
2024-05-24 12:55:14 +02:00