Repository: lra/mackup

Issue:
usability / doc issues (minor / feature request)
On ignoring Mackup since I installed it for multiple accounts, I'm now returning to working with it  to bring some more machines into the group and reorganise.  Here are some minor issues I ran into getting back up to speed:

* `mackup uninstall` says: 
    Every configuration file, setting and dotfile managed by Mackup will be unlinked and moved back to their original place, in your home folder.
    Are you sure ? <Yes|No>yes

This is scary and actually incorrect.  Please change 'moved' to 'copied' (obviously Mackup does the correct cp as mv would be an issue for all the other accounts).

* Would be nice to have a few lines in Bull*/backup on "What if I run `mackup backup` twice?" and/or maybe "How do I add another application later after the initial setup?"  Again, obviously Mackup does the right thing, but my (pedantic?)  reading of the documentation suggests it might not.  The --dry-run option already helps with this.

* it would be **way cool** if `mackup list` also reported things like: 'configuration files detected' and 'configuration already in Mackup', and for these cases also 'mackup.cfg includes' (implicit or explicit with applications_to_sync) or 'mackup.cfg excludes' 

Thanks!


Discussion:
Hi!

>  Please change 'moved' to 'copied'

This is a very straightforward patch, you could try and send it yourself! 🙂
Fork the repository, clone it, make your changes, test them and create a pull request 😉 
> Would be nice to have a few lines in Bull*/backup on "What if I run mackup backup twice?" and/or maybe "How do I add another application later after the initial setup?" Again, obviously Mackup does the right thing, but my (pedantic?) reading of the documentation suggests it might not. The --dry-run option already helps with this.

Yes, please! I've been asking myself the same questions.

I don't want to open yet another issue, so I'll add to this list:
"When should I run `mackup restore` on a new machine, before or after installing the apps?"
It's difficult to say whether the app should be first installed and then its configuration restored (/w mackup) or should mackup first restore the configuration and only then you install the app.
I'd guess that first you should run `mackup restore` and only then install the app, but there's a catch 22 where mackup depends on Homebrew, but it also can backup its config. So how do you install Homebrew to install mackup if you need to restore Homebrew's config before installing it.

I think mackup, when run, could find all the apps locally and in the backup and then show which apps are synced, which apps' configs exist only in one location, which apps' configs exist in both locations, but are different, and then offer what to do, and it could go as granular as on a per-app basis.

Resolving patch:
diff --git a/mackup/main.py b/mackup/main.py
--- a/mackup/main.py
+++ b/mackup/main.py
@@ -127,7 +127,7 @@ def printAppHeader(app_name):
             utils.confirm(
                 "You are going to uninstall Mackup.\n"
                 "Every configuration file, setting and dotfile"
-                " managed by Mackup will be unlinked and moved back"
+                " managed by Mackup will be unlinked and copied back"
                 " to their original place, in your home folder.\n"
                 "Are you sure?"
             )


Test patch: