Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider sub-commands for the watchmaker cli #1041

Open
lorengordon opened this issue Dec 10, 2019 · 2 comments
Open

Consider sub-commands for the watchmaker cli #1041

lorengordon opened this issue Dec 10, 2019 · 2 comments

Comments

@lorengordon
Copy link
Member

Right now, running watchmaker will immediately start executing. A safer default would be just to print the help. The current functionality could be implemented behind a sub-command, instead, e.g. watchmaker run. This would be introduced without changing the current behavior, just implementing the sub-command(s) and printing a deprecation warning when invoked without a sub-command.

Some sub-command ideas...

  • init - Copy config file to /etc/watchmaker.yaml or /etc/watchmaker/config.yaml
  • install - Invoke an install method from workers in the config, intended to install the config mgmt pkgs
  • run - Invoke the run method from workers, intended to run the config mgmt tool
  • clean - Invoke the clean method from workers, intended to remove config mgmt pkgs (not any hardening applied by the tool)
  • worker - Run a specific worker from the config
@ferricoxide
Copy link
Member

This issue is pretty old: can it be closed/is it "OBE"?

@lorengordon
Copy link
Member Author

Still valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants