Johannes Kirschbauer
48ddf22879
clan_lib: split utils into meaningfull files
2025-09-21 17:24:28 +02:00
Jörg Thalheim
ea2d6aab65
ruff: apply automatic fixes
2025-08-25 11:34:41 +02:00
Johannes Kirschbauer
0ea42ae541
store: move merge_objects into persistence helpers
2025-07-22 15:01:00 +02:00
Johannes Kirschbauer
181d44e83c
machines/create: fix handle defaults
2025-06-27 20:28:11 +02:00
Johannes Kirschbauer
799c23bb56
doc(cli/templates): improve help description
2025-06-11 17:00:10 +02:00
Johannes Kirschbauer
a254ff46a1
fix(tess/morph): skip creating existing machine
2025-06-11 17:00:10 +02:00
Johannes Kirschbauer
b5ed9fdfed
Docs(cli/machines): improve description of '--template'
2025-06-11 17:00:10 +02:00
Johannes Kirschbauer
1e3e7b6d37
Chore(machine/templates): simplify template args for machines command
2025-06-11 17:00:08 +02:00
Johannes Kirschbauer
92fdba3965
Chore(templates): move helper functions into a util file
2025-06-10 19:38:10 +02:00
Johannes Kirschbauer
2685db33d7
Refactor(cli/list_machines): rename to list_full_machines
...
This makes it clear that this should be used with care
It is potentially more expensive to create the full object, therefore it should be discouraged by its longer name
This listing is implemented based on the basic listing, where each item is turned into the bigger machine class
2025-06-09 13:40:57 +02:00
Johannes Kirschbauer
d482e22610
chore(nix_models): migrate import to use exported clan models
2025-05-28 14:03:22 +02:00
Johannes Kirschbauer
dd9ea44770
refactor(persist/utils): rename apply_patch to 'set_value_by_path'
2025-05-28 10:16:48 +02:00
Johannes Kirschbauer
63733f2c14
Fix(test): migrate machine cli command tests to use the new functions
2025-05-27 17:57:08 +02:00
Johannes Kirschbauer
55195e57e0
fix(morph/test): temporary workaround for morph test
2025-05-26 16:06:12 +02:00
Johannes Kirschbauer
14701fda01
chore: add todo comments for template logic in create machine
2025-05-26 16:05:20 +02:00
Johannes Kirschbauer
fe933d8eb7
Fix(machines/create): check if machine is already created
2025-05-23 22:31:06 +02:00
Johannes Kirschbauer
c8588eddb6
Fix(machines/create): always add 'deploy.targetHost'
...
Rationale: not passing the value, is equivalent to deleting a value from the inventory store
See: 'delete_by_path'
deploy.targetHost has a default of null (None)
2025-05-23 22:07:09 +02:00
lassulus
03990ef7f0
clan-cli: clan_cli.templates -> clan_lib.templates
2025-05-20 16:08:02 +02:00
lassulus
f2bf142e80
clan-cli: clan_cli.git -> clan_lib.git
2025-05-20 14:35:14 +02:00
lassulus
ed89352ea1
clan-cli: clan_cli.dirs -> clan_lib.dirs
2025-05-20 12:08:30 +02:00
lassulus
fa052f45bd
clan_lib: move clan_lib.flake.flake to clan_lib.flake
2025-05-16 19:28:36 +02:00
Johannes Kirschbauer
fe0507b47c
refactor: move clan_cli.error to clan_lib.error
2025-05-16 16:14:39 +02:00
lassulus
5423b9af41
clan_cli: move flake class to clan_lib
2025-05-16 13:38:47 +02:00
Johannes Kirschbauer
6de58478fa
Refactor: replace direct references to inventory
...
Deprecated. Inventory should be accessed via InventoryStore {read(),write(),...}
2025-05-16 11:30:41 +02:00
Qubasa
2f0114a236
clan-cli: Unify list_machines and use flake caching
2025-05-16 10:47:49 +02:00
Johannes Kirschbauer
45b12cdce6
Refactor(clan_lib): move nix bound classes out of the cli folder
2025-05-13 18:39:36 +02:00
Qubasa
01f9bb358e
clan-cli: Use machine object everywhere instead of name + flake
2025-05-09 13:13:14 +02:00
Qubasa
89decdaf7e
clan-cli: Refactor the API to use the Flake object
2025-05-07 16:43:50 +00:00
Jörg Thalheim
1037bd115b
Revert "Merge pull request 'clan-cli: Refactor the API to use the Flake object' ( #3531 ) from Qubasa/clan-core:replace_machine_name_with_machine_obj into main"
...
This reverts commit c09618b323 , reversing
changes made to 45b2539455 .
2025-05-07 15:24:57 +02:00
Qubasa
a6a69bb09b
clan-cli: Refactor the API to use the Flake object
2025-05-07 13:12:48 +02:00
Johannes Kirschbauer
f6628ec1a9
Refactor(clan_lib): move clan_cli.api into clan_lib.api
2025-04-26 19:51:35 +02:00
Michael Hoang
0d9963c1a6
cli: make some functions only create commits optionally
2025-02-16 21:14:09 +07:00
Johannes Kirschbauer
048bd37e3b
Inventory: automatically create emtpy file on write
2025-02-10 09:02:23 +00:00
Johannes Kirschbauer
f380046050
CLI: machine create use patch inventory for partial updates
2025-02-10 09:02:23 +00:00
lassulus
2a8f40e91a
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
Qubasa
bf26a2d306
clan-cli: Fix incorrect input handling in get_templates
2025-02-04 08:10:32 +00:00
Qubasa
825b4abd37
clan-cli: Make clan machines create use templating.py
2025-01-31 18:07:48 +07:00
a-kenji
fa54c0f1b5
Fix various typos
2025-01-22 13:19:28 +01:00
Johannes Kirschbauer
096ddea270
Inventory: fix persistence
2024-12-10 16:41:40 +01:00
Johannes Kirschbauer
e9a45fa712
API: fix create machine should set machine description and other data
2024-12-10 15:17:41 +01:00
Johannes Kirschbauer
69b7f6be5b
inventory.{cli,api}: use only dictionaries
2024-12-06 18:51:20 +01:00
Jörg Thalheim
6247723c50
commit file instead of just git adding it
2024-12-04 12:14:32 +01:00
Jörg Thalheim
3452ca54e6
skip writing the empty inventory json
2024-12-04 12:14:32 +01:00
Qubasa
1f98df96e3
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
Johannes Kirschbauer
3b7559e066
CLI: use new template path
2024-11-28 11:44:44 +01:00
Louis Opter
f4e621af88
clan-cli: secrets.sops: improve age keys detection
...
This change allows you to e.g. directly pass `$(age-keygen)` on the
command line.
2024-11-27 06:27:53 +00:00
a-kenji
1c9ca82055
pkgs/cli: Fix tag creation for clan machines create
2024-11-20 15:12:05 +01:00
a-kenji
5d6ac539bc
pkgs/cli: Complete --tags flag
2024-11-11 13:48:00 +01:00
clan-bot
e8f6786d95
Merge pull request 'pkgs/cli: Fix help string of clan machines create' ( #2350 ) from kenji/clan-core:kenji-fix-naming-create into main
2024-11-10 13:21:53 +00:00
a-kenji
aa1ca9ba59
pkgs/cli: Fix help string of clan machines create
2024-11-10 14:15:34 +01:00