kristovatlas/osx-config-check

enhancement: provide better "undo" support

Open

#95 opened on Jul 18, 2016

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Python (1,248 stars) (130 forks)batch import
enhancementhelp wanted

Description

Some users have used the "experimental" config changes and discovered that they don't like them, and want to revert them.

Currently, I've put some "undo" bash commands in the Hjson definition that users could run independently, but not for all of the commands. It would be nice if users could actually use a tool included in this repo to accomplish the "undo" functionality.

One way to facilitate this would be to store the state of configurations before overwriting them so they could later be restored. This is not very meaningful for boolean states, but for non-binary states this might be useful in restoring the system to where it was before.

Some open questions include:

  • If you run one version of a "fix" command and this changes in future versions of the tool, how do you make sure that the "undo" operation will correspond to the correct version of the "fix" command?
  • Are there any config fixes that interact with each other? For example, will performing an "undo" operation on configuration break another configuration? If so, how should that be handled?

Contributor guide