Rikkac need to be used with a Rikka server.
rikkac <format> filename
<format>
can be:
-s
: Src, image source url-m
: Markdown-h
: HTML-b
: BBCode-r
reStructuredText
Src is default format. Format priority as same as the list above, lowest to highest. This is, -m -b
considered as -b
, -m
is ignored. Not so complicated, you shouldn't remember priority if you never provide two format in one command.
Now we only provide executable binary for Linux, Because I only have Linux installed in my PC, QwQ
Then rename the file to rikkac
and move to a folder in your PATH
.
OK, installation finished, now you need configure Rikkac before use it.
User of other os please refer to next section to build and install Rikkac.
First, you need have Golang installed in your PC, then:
go get github.com/7sDream/rikka/rikkac
Add $GOPATH/bin
into your PATH
, if you haven't do this when you install Golang.
Then run rikkac --version
, a version number means install successfully.
You need some configure before use Rikkac.
Rikkac need to env variable: RIKKA_HOST
and RIKKA_PWD
. for Rikka server address and password.
export RIKKA_HOST=https://rikka.7sdre.am
export RIKKA_PWD=afakepassword
Then you can enjoy Rikkac.
Just run rikkac -m filepath
for upload.
You can get detail log when you meet some error by add -v
or -vv
option.
Just provide file path one by one:
rikkac -m file1 file2 file3 ...
Or you can use wildcard if your shell support:
rikkac -m *.png
rikkac -m a.png | xclip -sel clip
need xclip installed:apt-get install xclip
.