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

List only apps that exist on current host #1331

Closed
haakonstorm opened this issue Mar 5, 2019 · 2 comments
Closed

List only apps that exist on current host #1331

haakonstorm opened this issue Mar 5, 2019 · 2 comments

Comments

@haakonstorm
Copy link

Suggestion 1: "# mackup listlocal"

# mackup listlocal

To list only apps currently available on current host. Something along these lines:

Usage:
 mackup list
 mackup listlocal
 mackup [options] backup
 mackup [options] restore
 mackup [options] uninstall
 mackup (-h | --help)
 mackup --version

Options:
 -h --help     Show this screen.
 -f --force    Force every question asked to be answered with "Yes".
 -n --dry-run  Show steps without executing.
 -v --verbose  Show additional details.
 --version     Show version.

Modes of action:
1. list: display a list of all supported applications.
2. listlocal: display a list of all supported applications found on this local host**
(...)

The idea is that:
# mackup listlocal >> .mackup.cfg
can prepopulate the config file so it is easier to sort apps into:

[applications_to_sync]
irssi
ventrilo
xemacs

[applications_to_ignore]
xcode
rstudio

Because today, when I ran the utility for the first time with --dry-run, I got a list like this:
# mackup --dry-run backup

Backing up .MacOSX ...
Backing up Library/KeyBindings/DefaultKeyBinding.dict ...
Backing up Library/ColorSync/Profiles ...
Backing up .hgignore_global ...
Backing up Library/Application Support/Many Tricks ...
Backing up .npmrc ...
Backing up Library/Preferences/com.kapeli.dashdoc.plist ...
Backing up Library/KeyBindings/DefaultKeyBinding.dict ...
Backing up Library/Services ...
Backing up Library/Workflows ...
Backing up .config/omf ...
Backing up .subversion ...

I am not sure which apps all items in this list belong to. If instead we could do something like:

# mackup listlocal

xcode
sublime-text-3
alfred3
rstudio

(notice the dashes ("-") are removed from this view, to be compatible with .mackup.cfg)
This way your could immediately edit the cfg to select which Apps I want to exclude.

Suggestion 2: "# mackup setup"

Additionally, another way perhaps even better would be something like:

10core.local: # mackup setup

Searching for locally installed apps supported by the sync engines ...
Searching for available sync backends ...
Defaulting to all apps INCLUDED for sync ...
Building ~/.mackup.cfg for this particular host 10core.local ...
Done

Resulting in a .mackup.cfg created and prepopulated with:

  • Preconfigured, commented-out configuration suggestion for sync backends found (iCloud/git/Dropbox/~/..)
  • Preconfigured includes/excludes, defaulting to either all apps included or all apps excluded, or user selectable?
  • Perhaps for each app, lines listing the files queued for sync so they can be user included/excluded on a per-file-per-app basis?

Just my 0.02 satoshis,
thanks for a great utility!
And for Pouet!
<3 from Oslo

@zen0wu
Copy link

zen0wu commented Jun 26, 2019

I really like this proposal. Otherwise mackup list is not very useful, having 400+ programs listed, most of which each individual user doesn't even recognize.

@lra
Copy link
Owner

lra commented Jul 11, 2019

Dupe of #603

@lra lra closed this as completed Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants