From 7e4ccc40be46366fd8c0550aca1bfb6e73c3b5c6 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 21 Apr 2015 05:57:21 +0200 Subject: Add cli program. --- templates/api.html | 1 - templates/cli.html | 39 ++++++++++++++++++++++++++++++++++++++- templates/index.html | 3 ++- 3 files changed, 40 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/api.html b/templates/api.html index a88e584..2e11e55 100644 --- a/templates/api.html +++ b/templates/api.html @@ -9,7 +9,6 @@

Rest API:

Interfacing with Mandible is extremely simple:

-

Upload an image file:

diff --git a/templates/cli.html b/templates/cli.html index 9d50adb..0ce7535 100644 --- a/templates/cli.html +++ b/templates/cli.html @@ -7,8 +7,45 @@
-

TODO!

+

Imgup - CLI

+

Upload your images comfortable from the command line!

+
+

Usage:

+

imgup [FILE] [URL]

+

File have to be the path to a valid image file. Url must start with 'http://' or 'https://'

+
+ +

Installation:

+ +
+

Download:

+

Download the precompiled binary from here:

+

bin.iamfabulous.de/imgup

+

Currently there is only Linux x86_64 available.

+
+ +
+

Compiling from source:

+

You can compile imgup from source. You need a working Golang installation set up. Read here more.

+

cd $GOPATH
+ git clone https://git.iamfabulous.de/cgit.cgi/mandible
+ cd mandible/cli/imgup
+ go build +

+

You have a working binary now.

+
+ +

Example Usage:

+ +
+

$ imgup http://i.imgur.com/s9zxmYe.jpg
+Your image (http://i.imgur.com/s9zxmYe.jpg) was uploaded!
+			
+Follow this link: 
+  http://i.iamfabulous.de:8080/i/h/M/hMKg2qS
+			  
+Have a nice day!

diff --git a/templates/index.html b/templates/index.html index 64e06b6..2e64de8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -58,7 +58,8 @@

CLI Program

-

TODO: Use the image hoster direct from the command line.

+

Use the image hoster direct from the command line.

+

$ imgup http://i.imgur.com/s9zxmYe.jpg cat.png

-- cgit v1.2.3