Objective-C command line implementation of https://github.com/highgroove/alfred_reflecticle_extension
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
alfred_reflecticle_extension.xcodeproj
alfred_reflecticle_extension
.gitignore
README.md

README.md

Alfred Reflecticle Extension, Objective C style.

This command line Objective C app is modeled after the ruby version of the same name. It lets you post updates to Reflecticle from the command line.

For whatever reason, possibly due to how RVM and interacts with Reflecticle shell extensions, I was not able to get the ruby version to work... so here we are!

Installation

Setup your API Key:

$ echo 'API_KEY' > ~/.reflecticle

Download the latest binary. The ZIP file will contain one file: the executable alfred_reflecticle_extension.

Move the executable to a place in your $PATH; for instance, /usr/local/bin or ~/bin (if you have setup the latter to be in your $PATH).

Then, add a "Shell Script" extension with the command:

/usr/local/bin/alfred_reflecticle_extension "{query}"

as the command.

screenshot of how it should look in alfred

Finally, adjust the advanced options so that "Double Quotes" and "Dollars" are escaped:

advanced options

An automated installer would be really nice: if you have knowledge about how to make this work, please submit a pull request.

Use it from Alfred to log your activities:

updating from alfred

Command Line Usage

./alfred_refleticle_extension "<project name> <message>"

TODO

  1. Add tests
  2. Implement error handling
  3. Automate the installation of the command line utility

License

Copyright (c) 2012 Jonathan R. Wallace

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.