alcatraz / Alcatraz

Package manager for Xcode
alcatraz.io
MIT License
9.88k stars 1.15k forks source link

Import and Export snapshots #442

Closed augustorsouza closed 8 years ago

augustorsouza commented 8 years ago

Add buttons to allow alcatraz to save and restore snapshots, this way teams can share their plugins with each other using files.

This pull request has lots of User interface and code organization problems in my opinion, but the idea is to offer the feature so you can see if it makes sense for your development flow like it makes to mine. If so, I plan on improving the interface of the import and export features based on your feedback.

Best regards.

guillaumealgis commented 8 years ago

Sorry, didn't mean to reference this PR from issue 387.

guillaumealgis commented 8 years ago

Regarding the feature, I think the problem you're solving could be handled with a dotfile as described in #413.

I'd prefer the dotfile over this because it would be easier to edit manually and covers more use-cases. Something like

RedXcode == 1.0.1
ActivatePowerMode == 2.3.1
FuzzyAutocomplete == 1.3.0

is friendlier than a binary plist with a NSKeyedArchiver version of the installed packages, and the dotfile would be updated automatically with each plugin install/uninstall.

Also, the NSKeyedArchiver approach requires some kind of versioning of the exported dump, to prevent crashing when importing a snapshot generated with an older version of Alcatraz (in case of changes to the ATZPackage class).

augustorsouza commented 8 years ago

Great! I totally agree, I didn't notice the existence of #413. Can I work on this issue in order to help in the Alcatraz development or there is anyone already implementing this feature?

guillaumealgis commented 8 years ago

I don't think anyone is working on #413. Feel free to submit a PR, it's always appreciated :+1:

I'll close this if we all agree a dotfile is a better way to handle it. Thanks Augusto!