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

Status command #603

Open
lra opened this issue Aug 9, 2015 · 8 comments
Open

Status command #603

lra opened this issue Aug 9, 2015 · 8 comments
Labels

Comments

@lra
Copy link
Owner

lra commented Aug 9, 2015

Implement a mackup status command to display any synced app, and any app that could be synced
by launching mackup backup

When we launch mackup status we should have a list of all the locally installed apps that mackup supports, and for each one, it should display if the application settings are synced (linked into the mackup data folder)

It should also display the applications that have files in the mackup data folder even if they are not installed locally.

Example of output:

Application | Status
--------------------------
Bash        | Synced
Emacs       | Not Synced
Vim         | Config available in Mackup
Zsh         | Synced

This is a required step to support copy mode (instead of linking) as with copy mode we need to display how old is each saved configuration to the user.

PR welcomed for the status command.

@dahacouk
Copy link

dahacouk commented Sep 3, 2015

And maybe the datetime when applications were last Synced?

@lra
Copy link
Owner Author

lra commented Sep 3, 2015

What you are asking is about the copy mode: #613
Linked configs are always in sync.

@star-szr
Copy link
Contributor

I'm very interested in working on this, any thoughts as to how we would get the kind of output shown in the OP? I can start to work on the plumbing without knowing but would be good to know if there's a library/package that would make building that type of output easier.

@jannae
Copy link
Contributor

jannae commented Oct 31, 2015

Hey @cottser, take a look at https://pypi.python.org/pypi/tabulate

@lra
Copy link
Owner Author

lra commented Nov 2, 2015

yep prettytable too

@star-szr
Copy link
Contributor

star-szr commented Nov 2, 2015

Thank you both, tabulate looks more appealing because prettytable hasn't been updated since early 2013 and the code lives at an archived Google code project. I haven't made any significant progress on this yet but will make sure any PRs I submit show up here.

@star-szr
Copy link
Contributor

Serious (newbie) question: How do you actually recommend setting this project up for development? When you install via Homebrew things seem kinda tangled and I couldn't figure out how to get the tabulate package in there. pip is more straightforward, I just symlinked /usr/local/lib/python2.7/site-packages/mackup to my repo's mackup directory.

If there's an easier/better way (or not), I'd be happy to write a note to add to CONTRIBUTING.md 👍

@lra
Copy link
Owner Author

lra commented Nov 17, 2015

uninstall the homebrew one, run make develop and make undevelop to clean up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants