Skip to content

groob/yo-yo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Like outset for yo

yo-yo traverses a directory for json or plist formatted code parameters for Yo, and creates notifications using yo. Installing a LaunchAgent to watch a directory and trigger yo-yo allows applications running as root to deliver notifications to the session. yo-yo deletes the notification file after successfully executing yo, promising at most once delivery. This won't work in a multi user context.

Notification file example: The keys in the json or plist file mirror yo's cli flags.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>title</key>
    <string>Foo</string>
    <key>subtitle</key>
    <string>bar</string>
</dict>
</plist>

yo-yo accepts the following options:

  • -n: The directory containing the files for notifications.
  • -p: The path to the Yo executable. Defaults to /usr/local/bin/yo.