groob / yo-yo

Like outset for yo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Like outset for yo.


Languages

Language:Go 88.0%Language:Makefile 6.5%Language:Shell 5.5%