Skip to content

persistence - launch items and hooks#1

Merged
stuartjash merged 5 commits intomasterfrom
persistence
Nov 29, 2021
Merged

persistence - launch items and hooks#1
stuartjash merged 5 commits intomasterfrom
persistence

Conversation

@stuartjash
Copy link
Copy Markdown
Contributor

No description provided.

let aftermathLaunchDir: URL

init() {
self.caseHandler = CaseHandler()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll have to bring the case handler in as an argument to the PersistenceHandle class because every module running from main will have to use the same caseHandler.

// Processes

// Persistence - DJ Beef Stew
let persistenceHandler = PersistenceHandle()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log when this persistenceHandler starts and finishes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

via the aftermath.log?

} catch {
print("Could not read \(atUrl.relativePath)")
print(error)
return plistDict
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be redundant (I know I gave you this code)

}

func captureLaunchData(urlLocations: [URL]) {
print("Capturing...")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to remove print statements. Use caseHandler.log() instead if needed.

Same applies when printing an error (I might need to clean this up in my code as well)

@stuartjash stuartjash merged commit 18d621a into master Nov 29, 2021
@stuartjash stuartjash deleted the persistence branch October 5, 2022 14:25
stuartjash pushed a commit that referenced this pull request Oct 12, 2022
jbradley89 pushed a commit that referenced this pull request Sep 5, 2023
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

Successfully merging this pull request may close these issues.

4 participants