ajvb / kala

Modern Job Scheduler
MIT License
2.11k stars 187 forks source link

Use Cobra/Viper and Support Config Files #221

Closed tooolbox closed 4 years ago

tooolbox commented 4 years ago

This PR changes the underlying CLI framework from https://github.com/urfave/cli to https://github.com/spf13/cobra

This allows us to use https://github.com/spf13/viper and therefore configuration files, which handles #89

As part of the move, command line flag names were standardized to kebab-case, and the command names were improved: run -> serve and run_command -> run

This is obviously backwards incompatible from an ops perspective, but not by a lot, and the results are worth it.