Goosh for Linux follows the same syntax then goosh.org. For the moment, the following commands and their aliases are available:
- help
- search
Note that the command `quit` has been added to conveniently quit interactive mode.
Interactive mode
You can either type a goosh command to get output or just type `
goosh` to enter interactive. Note that you can force interactive mode from a command typing `--` after goosh, ie, `goosh -- s linux mint`.Design patterns
Goosh for Linux is powered by PHP-CLI because I am more used to PHP when working with WEB API and JSON output. It is PHP to its simplest: bunch of procedural functions, an exception handler, an output handler and a controller.
Differences between goosh.org and goosh for linux
Apart that the former is written in JavaScript and the latter in PHP, the Google APIs used are different. goosh.org uses the Google Web Search API which is deprecated now but was not when goosh.org was written (around 2008).
The Web Search API has been substituted by the JSON/Atom Custom Search API. The difference is big between the two APIs. The first one is a straight-forward REST API, simple, all-about-code - the way we geeks like it.
The Custom Search API is more specific to Google, is less versatile and relies more on Web Panel Interfaces than a good-old-plain HTTP handshake. It is more company-oriented than targeted for developers. On top of that, it has this ridiculous limit of 100 queries per day, making testing impossible. So I will most likely give up this API in future versions.
Downloads
You can download a gzipped folder of the application or checkout our git in google code. Happy coding :)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.