Skip to content
Official CLI tool for Pixela
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_tools
cmd/pi
.gitignore Prepare for release Feb 21, 2019
.travis.yml
CHANGELOG.md
LICENSE
Makefile
README.md
api.go
api_test.go
base.go
cli.go
go.mod
go.sum
graphs.go
graphs_test.go
pixel.go Support short option Feb 20, 2019
pixel_test.go
test_base.go
users.go Support short option Feb 20, 2019
users_test.go
version.go
webhooks.go
webhooks_test.go Fix --id option Feb 20, 2019

README.md

pi [pí]

Travis Build Status

Description

pi ([pí]) is a CLI tool for Pixela (pixe.la)

Installation

% go get github.com/a-know/pi/cmd/pi

And, there is explanation blog entry; "草APIサービス" Pixela のコマンドラインツールを作ったので、OSごとのインストール・使い方を書きます! (in Japanese)

Synopsis

% pi users create --username a-know --token thisissecret --agree-terms-of-service yes --not-minor yes
% export PIXELA_USER_TOKEN=thisissecret
% export PIXELA_USER_NAME=a-know
% pi graphs create -g my-first-graph -n "My first graph" -i commits -t int -c shibafu -z "Asia/Tokyo" -s none
% pi pixel post -g my-first-graph -d 20190101 -q 5 -o "{\"key\":\"value\"}"
% pi graphs svg -g my-first-graph | xargs open

Available commands

  graphs    operate Graphs
  pixel     operate Pixel in Graph
  users     operate Users
  version   display version
  webhooks  operate Webhooks

Subcommands

users

  create  create User
  delete  delete User
  update  update User Token

graphs

  create  create Graph
  delete  delete Graph
  detail  get Graph detail URL
  get     get Graph Definitions
  pixels  get Graph Pixels
  svg     get SVG Graph URL
  update  update Graph Definition

pixel

  decrement  decrement a Pixel
  delete     delete a Pixel
  get        get a Pixel
  increment  increment a Pixel
  post       post a Pixel
  update     update a Pixel

webhooks

  create  create a Webhook
  delete  delete a Webhook
  get     get registered Webhooks
  invoke  invoke Webhook

Options

Please see the running result each subcommands with -h.

CI running count

CI running count

Author

a-know

You can’t perform that action at this time.