Commits

Shlomi Fish  committed 5ed2d98

Clarified the synopsis.

  • Participants
  • Parent commits 049b87d

Comments (0)

Files changed (2)

File App-Notifier-Service/Changes

+    * Some clarifications to the documentation thanks to ironcamel.
+
 0.0200      Wed Jul 11 16:44:15 IDT 2012
     * Add more documentation with examples.
     * Add newlines to the output reports of /notify.

File App-Notifier-Service/lib/App/Notifier/Service.pm

 
     $ cat <<EOF > ~/.app_notifier.yml
     commands:
+        # These entries contain command lines that get invoked after the
+        # notification is received. They can be either strings or arrays.
         default:
             - /home/shlomif/bin/desktop-finish-cue
         shine:
             - "/home/music/Music/dosd-mp3s/Carmen and Camille - Shine 4U"
     EOF
 
-    # Run the Dancer application
+    # Run the Dancer application from the distribution's root directory.
     ./bin/app.pl
 
+    # Alternatively run the following Perl code:
+    use Dancer;
+    use App::Notifier::Service;
+    dance;
+
     # When you want to notify that an event occured:
     $ curl 'http://127.0.0.1:3000/notify'
     $ curl 'http://127.0.0.1:3000/notify?cmd_id=shine'