InsanePrawn
|
acee95a003
|
dictscheme: rename from dataclass as it's confusing with builtin dataclasses
|
2023-04-17 02:37:10 +02:00 |
|
InsanePrawn
|
dfd191060a
|
config/state: remove field_name from missing device/flavour hint as it gets used as the profile name
|
2023-04-16 03:37:22 +02:00 |
|
InsanePrawn
|
00613096d5
|
config/state: add config.runtime.colors, fill in main.py
|
2023-03-17 16:34:20 +01:00 |
|
InsanePrawn
|
785e41f8b7
|
logger: add --force-colors/--no-colors cli flag
|
2023-03-17 16:34:20 +01:00 |
|
InsanePrawn
|
3eeeafb30f
|
config.state: try_load_file(): clear state.exception after successful load
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
11125e525f
|
config: remove accidental scheme validation circumvention, improve errors, warn on config loading failure in main()
This will fail on values of the wrong type, but still warn about and allow unknown keys.
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
82a87e7ea9
|
implement explicit Optional type hints for =None parameters
Thanks https://github.com/hauntsaninja/no_implicit_optional
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
33f4a81981
|
config: move code from __init__.py into cli.py
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
2a20f6c45a
|
config: add Config.enforce_profile_flavour_set()
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
7d803fc5bd
|
config: Config.update(): avoid Munch attr error by calling .toDict() on self.file before comparison with merged
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
ad83d14861
|
config.enforce_profile_device_set(): default profile_name from profiles.current to output in error msgs if "None" passed
|
2022-11-09 20:11:20 +01:00 |
|
InsanePrawn
|
a3ec35bcd6
|
config: introduce rust cache
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
47e74fb415
|
config: introduce per-arch persisted ccache dir
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
8ad18c00a6
|
global: refactor to use config.{file,runtime}.$member instead of config.file["$member"]
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
a13fdc70e1
|
config: add config.runtime.uid
|
2022-11-02 00:38:18 +01:00 |
|
InsanePrawn
|
2b539f5a5b
|
Merge branch 'dev' into prawn/flavours
|
2022-08-25 16:53:13 +02:00 |
|
InsanePrawn
|
2d13d82943
|
config/: rework code around parsing profiles, add scheme.SparseProfile to account for the partial profiles in config
|
2022-08-20 04:32:33 +02:00 |
|
InsanePrawn
|
688f9e2375
|
config.ConfigStateHolder: initialize self._profile_cache in constructor
|
2022-08-19 18:12:21 +02:00 |
|
InsanePrawn
|
30d9be0950
|
config: more fixes for scheme.py
|
2022-08-18 05:39:51 +02:00 |
|
InsanePrawn
|
7eefafc386
|
config: split up into state.py and profile.py, fixup tests
|
2022-08-18 03:45:12 +02:00 |
|