Repository navigation
feat: export the app's service selection as a profile file - #68
Open
Interlap01 wants to merge 1 commit into
Open
Interlap01 wants to merge 1 commit into
Interlap01 wants to merge 1 commit into
Conversation
The Services to keep header gets an Export… button that saves the
selection Apply would use as a profile file for `simslim on --profile`.
A daemon a kept category already covers is not repeated in "keep", and
an empty selection writes {}, the default profile.
Fixes #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #31.
The CLI can write a profile with the
simslim profilewizard, but the macOS app had no way to save its selection. The Services to keep header now has an Export… button next to Full Slim. It opens a save panel and writes the selection that Apply would use as a profile file forsimslim on,verify, andwatch --profile.except, and individually kept daemons go inkeep, both sorted.keep, matchingenable --save.{}, which is the default profile.The file uses Foundation's pretty-printed JSON style (
"except" : [). The CLI accepts it, though files the CLI writes look slightly different.Testing
make checkandmake apppass.AppModel(with the bundled CLI) in a harness on four selections: nothing kept;searchandstore; a daemonstorealready covers, kept again throughicloud, plus onesiridaemon; and everymdmdaemon kept one by one. I loaded each exported file withLoadSlimProfileand comparedDesired()to the daemons the app disables. All four match (173, 154, 153, and 150 disabled). The covered daemon is left out ofkeep, andmdmturns into anexceptentry. No simulators were booted or changed.