[ANN] Go peertube client

hi there,

a quick announcement about a simple Go client for Peertube:

it also ships with an also very simple peertube-cli command-line interface:

Here is the README :


peertube

Build status GoDoc

peertube is a simple (and incomplete) Go client for peertube.

Installation

$> go install git.sr.ht/~sbinet/peertube
$> go install git.sr.ht/~sbinet/peertube/cmd/peertube-cli

Examples

$> peertube-cli help
peertube-cli - runs peertube-cli commands and sub-commands

Commands:

    auth-add     authenticate with a PeerTube server
    auth-ls      list the known PeerTube servers
    auth-rm      remove a PeerTube login
    video-ls     list video(s) from a PeerTube server
    video-upload upload a video to a PeerTube server

Use "peertube-cli help <command>" for more information about a command.
$> peertube-cli auth-add help
Usage: peertube-cli auth-add [options]

auth-add authenticates with a PeerTube server.

ex:
 $ peertube-cli auth-add -url https://peertube.example.org -u gopher -p s3cr3t

Options:
  -p string
    	password
  -u string
    	username
  -url string
    	PeerTube server URL
$> peertube-cli video-upload help
Usage: peertube-cli video-upload [options]

video-upload uploads a video to a PeerTube server.

ex:
 $ peertube-cli video-upload /path/to/file
 $ peertube-cli video-upload -url https://peertube.example.org -u gopher /path/to/file

Options:
  -category int
    	video category (music, film, ...)
  -channel string
    	channel name or id where to upload video
  -comments
    	enable/disable comments on video (default true)
  -descr string
    	video description
  -download
    	enable/disable download of video (default true)
  -language string
    	ISO 639 language code (en, fr, ...)
  -license int
    	video license (attribution, public, no derivatives, ...)
  -name string
    	video name
  -nsfw
    	whether video is Not Safe For Work
  -p string
    	password
  -preview string
    	path to preview file for video
  -privacy int
    	video privacy
  -support string
    	video support text
  -tags string
    	comma-separated list of tags (up to 5)
  -thumbnail string
    	path to thumbnail file for video
  -u string
    	username
  -url string
    	PeerTube server URL
  -use-legacy
    	whether to use non-resumable upload scheme
  -wait-transcoding
    	whether to wait for transcoding before publishing video (default true)
1 « J'aime »