Skip to content

Consider sub-commands for the watchmaker cli #1041

@lorengordon

Description

@lorengordon

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions