mrusme / xbscli

Command line interface for xbsapi and the official xBrowserSync API

Home Page:https://xn--gckvb8fzb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xbscli

A command line interface for xbsapi as well as the official xBrowserSync API.

Build

go build .

Run

xbscli \
  -s "https://xbsapi.myserver.com/api/v1" \
  -i $(pass show xbs/id) \
  -p $(pass show xbs/password) \
  -f pretty

Supported formats (-f)

  • json (default)
  • pretty - formatted text
  • html - produces a basic HTML file similar to browser export of bookmarks as html. Handy as an input to static-marks

Docker

An alternate way to run xbscli

Build

 docker build -t xbscli .

Run

 docker run --rm xbscli \
  -s "https://xbsapi.myserver.com/api/v1" \
  -i $(pass show xbs/id) \
  -p $(pass show xbs/password) \
  -f pretty

About

Command line interface for xbsapi and the official xBrowserSync API

https://xn--gckvb8fzb.com

License:GNU General Public License v3.0


Languages

Language:Go 98.2%Language:Dockerfile 1.8%