summaryrefslogtreecommitdiff
path: root/templates/cli.html
blob: 31a3a9c2dcac7c28b56a866fd28caa28c69b20a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{{template "header.html" "CLI documentation | Mandible"}}
{{template "navbar.html"}}
{{template "modal_uploaded.html"}}
{{template "modal_error.html"}}

<div class="container">
        <div class="row">
		<div class="col-md-12 well">

			<h1>Imgup - CLI</h1>
			<p>Upload your images comfortable from the command line!</p>


			<h2>Installation:</h2>

			<blockquote>
				<h2>Download:</h2>
				<p>Download the precompiled binary from here: </p> 
				<p><a href="https://bin.iamfabulous.de/imgup/" title="Downloads for binaries">bin.iamfabulous.de/imgup</a></p>
				<p>Currently it is only for 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 already 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 are finished. Now you can start using imgup.</p>
			</blockquote>

			<h2>Usage:</h2>

			<blockquote>
				<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>


			<blockquote>
				<h2>Example Usage:</h2>
				<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>
			</blockquote>
		</div>
	</div>
</div>

{{template "footer.html"}}