rikkac

command
v0.0.0-...-80b44f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 13 Imported by: 0

README

Rikkac - CLI tool of Rikka

中文版

Rikkac need to be used with a Rikka server.

Usage

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.

Build and Install

Executable Binary Download

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.

From Source Code

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.

Configure and Usage

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.

Multi File upload

Just provide file path one by one:

rikkac -m file1 file2 file3 ...

Or you can use wildcard if your shell support:

rikkac -m *.png

Tips: Copy Result to Clipboard in Quick

rikkac -m a.png | xclip -sel clip

need xclip installed:apt-get install xclip.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL