mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-16 14:00:00 -05:00
fix: no hooks subobject for consistency
So global hooks are consistent with per component hooks
This commit is contained in:
@@ -95,9 +95,8 @@ class Manifest:
|
|||||||
except tomllib.TOMLDecodeError as e:
|
except tomllib.TOMLDecodeError as e:
|
||||||
raise ManifestError(f"invalid TOML: {e}") from e
|
raise ManifestError(f"invalid TOML: {e}") from e
|
||||||
|
|
||||||
hooks = raw.get("hooks", {})
|
post_install = _validate_str_list(raw.get("post_install", []), "post_install")
|
||||||
post_install = _validate_str_list(hooks.get("post_install", []), "hooks.post_install")
|
post_update = _validate_str_list(raw.get("post_update", []), "post_update")
|
||||||
post_update = _validate_str_list(hooks.get("post_update", []), "hooks.post_update")
|
|
||||||
|
|
||||||
packages = _validate_str_list(raw.get("packages", []), "packages")
|
packages = _validate_str_list(raw.get("packages", []), "packages")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user