Jörg Thalheim
c1e2bc9ea9
make config command read-only
2024-05-29 13:17:55 +02:00
Jörg Thalheim
f0f97baa65
drop global argparse flags
...
They get shadowed by subargparser options.
2024-05-29 10:21:35 +02:00
Jörg Thalheim
4fd84d1c48
disallow variable shadowing
2023-11-30 14:31:37 +01:00
Jörg Thalheim
31ce8f7357
fix build
2023-11-30 11:08:50 +01:00
Jörg Thalheim
f1b223d0a1
modernisation for python 3.11
2023-11-29 13:29:45 +00:00
Jörg Thalheim
26e3e3872c
enable more linting
2023-11-29 13:29:45 +00:00
lassulus
1ea13646ea
clan_cli: flake_name -> flake_dir
2023-11-15 16:23:28 +01:00
Qubasa
f9b1a8fa89
Removing find_git_repo
2023-10-27 19:26:03 +02:00
Qubasa
c1b4fa6d55
nix fmt
2023-10-27 19:21:50 +02:00
Qubasa
d1c35301e3
Added repro_env_break debugging command. This spawn a terminal inside the temp home folder with the same environment as the python test
2023-10-27 19:20:17 +02:00
Qubasa
26bfb793b1
Added ref to Qubasa-main in template/new-clan/flake.nix
2023-10-27 19:20:17 +02:00
DavHau
3783359f08
clan config: support new types nullOr and passwdEntry
2023-09-24 14:24:48 +01:00
DavHau
ec70b34470
clan config: match dynamic options containing <name>
2023-09-24 13:04:37 +01:00
DavHau
6a359c0a2f
clan-cli: add git.commit_file() to auto commit files if inside a git
...
- commit only if inside a git repo
- commit only the specified file and nothing else
- auto-generate commit message if not specified
2023-09-21 14:07:54 +02:00
Jörg Thalheim
87f0b090ef
cli: rename clan_flake to test_flake
2023-09-15 12:36:16 +02:00
Jörg Thalheim
02f421546c
rename machine_flake back to clan_flake
2023-09-14 17:06:07 +02:00
DavHau
8ca0a2aee4
clan-config: introduce --machine + add tests
2023-08-30 20:59:26 +02:00
DavHau
518bf4197f
webui: tests for machine config endpoints
2023-08-26 08:46:53 +02:00
DavHau
fb76ad45e8
webui: implement /api/machines/{name}/schema
2023-08-25 21:26:30 +02:00
Jörg Thalheim
6adfadd8b9
re-enable config subcommand if CLAN_OPTIONS_FILE is set
2023-08-24 18:28:33 +02:00
DavHau
b16f314c80
clan-config: add option --quiet
2023-08-23 12:25:02 +02:00
DavHau
999fbe0d89
clan-config: add readme
...
Also add capability of reading an option value
2023-08-23 01:01:07 +02:00
DavHau
780fd881c3
clan-config: fix tests
2023-08-22 21:17:47 +00:00
DavHau
48686591d8
clan-config: improve and add flake-parts module for clan-config
2023-08-22 21:17:47 +00:00
DavHau
52d6798315
clan-config: stop using jsonschema at all for CLI
...
- instead use options.json coming from nixosOptionsDoc
2023-08-15 15:48:17 +02:00
DavHau
348e503789
clan-config: get rid of jsonschema dependency
2023-08-15 13:29:48 +02:00
DavHau
0a9b914ad5
clan-config: improve jsonschema arg parsing
...
- output json to stdout after success
- expect args in the style: `foo.bar = baz`
- handle different input types
- cast input types on best effort basis
- throw meaningful errors
2023-08-11 00:05:52 +02:00
DavHau
d04278e9b1
clan-config: add tests
2023-08-10 21:17:17 +02:00