kristovatlas/osx-config-check

enhancement: provide better "undo" support

Open

#95 aberto em 18 de jul. de 2016

Ver no GitHub
 (0 comments) (1 reaction) (0 assignees)Python (130 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (1.248 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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?

Guia do colaborador