Closed spuder closed 1 year ago
Hm, "config show" was just a suggestion for testing config.
In fact, all commands go through a new check upgrade_config_if_needed()
, which checks for outdated configs.
The problem with trying to bail on missing config, is that at least one command ("config import") needs to be able to run without config :)
I'll ponder it a bit, and find a solution
Attempting to test the new pppp functionality to upload a gcode produces the following error
I'm 90% positive this error is because I didn't run
ankerctl config show
first (I don't see a default.json file present in ~/.config/**)Solution
Catch missing config files and give a human readable instruction to run the config import first