summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/api.html1
-rw-r--r--templates/cli.html39
-rw-r--r--templates/index.html3
3 files changed, 40 insertions, 3 deletions
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 @@
<h1>Rest API:</h1>
<p>Interfacing with Mandible is extremely simple:</p>
- <p></p>
<blockquote>
<h2>Upload an image file:</h2>
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 @@
<div class="row">
<div class="col-md-12 well">
- <h1>TODO!</h1>
+ <h1>Imgup - CLI</h1>
+ <p>Upload your images comfortable from the command line!</p>
+ <blockquote>
+ <h2>Usage:</h2>
+ <p><code>imgup [FILE] [URL]</code></h2></p>
+ <p>File have to be the path to a valid image file. Url must start with 'http://' or 'https://'</p>
+ </blockquote>
+
+ <h2>Installation:</h2>
+
+ <blockquote>
+ <h2>Download:</h2>
+ <p>Download the precompiled binary from here: </p>
+ <p><a href="http://bin.iamfabulous.de/imgup/">bin.iamfabulous.de/imgup</a></p>
+ <p>Currently there is only Linux x86_64 available.</p>
+ </blockquote>
+
+ <blockquote>
+ <h2>Compiling from source:</h2>
+ <p>You can compile imgup from source. You need a working Golang installation set up. Read <a href="http://golang.org/" title="Golang">here</a> more.</p>
+ <p><code>cd $GOPATH <br>
+ git clone https://git.iamfabulous.de/cgit.cgi/mandible <br>
+ cd mandible/cli/imgup <br>
+ go build
+ </code></p>
+ <p>You have a working binary now.</p>
+ </blockquote>
+
+ <h2>Example Usage:</h2>
+
+ <blockquote>
+ <p><pre><code>$ 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!</code></pre></p>
</div>
</div>
</div>
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 @@
</div>
<div class="col-md-6">
<h2><i class="fa fa-terminal"></i> CLI Program</h2>
- <p><strong>TODO:</strong> Use the image hoster direct from the command line.</p>
+ <p>Use the image hoster direct from the command line.</p>
+ <p><code>$ imgup http://i.imgur.com/s9zxmYe.jpg cat.png</code></p>
</div>
</div>
<div class="row">