https://github.com/oz/cdporc
A little Go program to consume cote-de-porc's API
https://github.com/oz/cdporc
Last synced: about 2 months ago
JSON representation
A little Go program to consume cote-de-porc's API
- Host: GitHub
- URL: https://github.com/oz/cdporc
- Owner: oz
- Created: 2013-10-06T03:26:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-07T15:25:47.000Z (over 11 years ago)
- Last Synced: 2025-03-26T22:04:51.427Z (about 2 months ago)
- Language: Go
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is this?
A little Go program to use [cote-de-porc][cdp]'s JSON API.
# Usage:
$ ./cdporc -h
Usage of ./cdporc:
-d="ID": Delete quote (shorthand)
-del="ID": Delete quote
-l=false: List quotes (shorthand)
-list=false: List quotes
-p="ID": Publish quote (shorthand)
-publish="ID": Publish quote
-r=false: Get a random quote (shorthand)
-rand=false: Get a random quote
-t="all": List quotes of this type (shortand)
-type="all": List quotes of this typeThe program expect the `CDP_SERVER` environment variable to point to your
installation of the [cote-de-porc][cdp] software, example:$ CDP_SERVER="http://user:[email protected]" ./cdporc -l
# Building:
You need Go 1.1.
$ git clone http://github.com/oz/cdporc
$ cd cdporc
$ go build -o cdporc# Will this program change the world?
Of course!
[cdp]: https://github.com/spk/cotedeporc