Commit graph

19 commits

Author SHA1 Message Date
InsanePrawn
482c5f8111 Get rid of /app hardcodes
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-30 17:18:32 +02:00
InsanePrawn
a3d85cda8c config.get_path(), wrapper: remove --config/-C from wrapper args 2021-09-30 03:50:47 +02:00
InsanePrawn
f3794f939e Move enforce_wrapper() into appropiate CMDs. This speeds up --help as a side effect! 2021-09-29 23:18:12 +02:00
InsanePrawn
18c689f897 Add config init, currently broken due to docker wrapping 2021-09-29 22:57:26 +02:00
InsanePrawn
f09deaa9a5 a lot: profiles, some more help strings. partial: exceptions instead of exit()
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-29 02:00:59 +02:00
InsanePrawn
d08e25fe1b Add distros.get_base_distros() 2021-09-26 17:19:30 +02:00
InsanePrawn
3b69c2235b Crosscompile is borked, host-compile seems working
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
232df81901 WIP: Add scaffolding for arch-agnostic base-distro handling 2021-09-26 17:19:30 +02:00
InsanePrawn
44261ffccb new dependency generation algorithm, dynamic chroot paths [almost] everywhere 2021-09-26 17:19:30 +02:00
InsanePrawn
40fe23ae28 config: add dump_toml() and dump_file() 2021-09-26 17:19:30 +02:00
InsanePrawn
d9662cc0d1 config: renamed paths 2021-09-26 17:19:30 +02:00
InsanePrawn
b36539af4c config.py: refactor merge_configs() out of parse_file() and add sanitize_config() alias 2021-09-26 17:19:30 +02:00
InsanePrawn
ba7043b654 config.py: store config path in runtime conf and log file load 2021-09-26 17:19:30 +02:00
InsanePrawn
32fbc7529b config profiles: add optional user password 2021-09-26 17:19:30 +02:00
InsanePrawn
144acee10f WIP: Improve config parsing, make --verbose and --config-file global options
Bonus: Generalize and reuse cmd_ssh()

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
4cf608eeb6 load_config(): add merge_defaults parameter, fix accidental overwriting of default profile when merging 2021-09-26 17:19:30 +02:00
InsanePrawn
7f153c214c config.py: formatting 2021-09-26 17:19:30 +02:00
InsanePrawn
9cc09e4f5b config: add config parsing and merging
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
07c61f9a33 Add first draft for config parsing
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00