feat(cli): add headless command-line interface

Add core.cli with argparse-based install/remove/update commands for Klipper,

Moonraker, Mainsail/Fluidd and client configs.

Wire main.py to dispatch to the CLI and fall back to the TUI when no args

are given. Pass CLI arguments through kiauh.sh and skip the update dialog

for non-interactive runs.
This commit is contained in:
dw-0 committed 2026-07-11 17:49:51 +02:00
1 parent adf3e292fb
commit 9b93450d98
5 files changed
+900 -11

No files matched your search

+7 -5
View File
@@ -135,10 +135,12 @@ function main() {
export PYTHONPATH="${entrypoint}"
clear -x
python3 "${entrypoint}/kiauh/main.py"
python3 "${entrypoint}/kiauh/main.py" "$@"
}
check_if_ratos
check_euid
kiauh_update_dialog
main
# skip update prompt when arguments are passed -> dont block cli runs
if [[ $# -eq 0 ]]; then
kiauh_update_dialog
fi
main "$@"