Giter Site home page Giter Site logo

pi's Introduction

pi [pí]

Travis Build Status pixela

Description

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

Installation

% go install github.com/a-know/pi/cmd/pi@latest

OR

% brew install a-know/tap/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
  stats   get Graph stats

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

References

Pixela API Document

Author

a-know

pi's People

Contributors

a-know avatar peaceiris avatar qt-luigi avatar zztkm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pi's Issues

windows_amd64に関して

Windows版の使用させていただきました。windows_amd64のアーカイブなのですが、中に入っている実行ファイルのpiに拡張子がないので実行にはリネームが必要かなと思いましたがどうでしょうか。

pi graphs update --is-secret false: don't work

Hi. pi is a so cool tool!
But I'm in trouble...

  • macOS: 10.14.5
  • pi version: 1.0.3 (rev: 2cb8b0a)

--is-secret true work.

$ pi graphs update -u <my-user-id> -g <my-graph-id> --is-secret true
$ pi graphs get -u <my-user-id>
{
  "graphs": [
    {
      "id": "my-graph-id",
      "name": "my-graph",
      "unit": "count",
      "type": "int",
      "color": "shibafu",
      "timezone": "UTC",
      "purgeCacheURLs": null,
      "selfSufficient": "none",
      "isSecret": true,
      "publishOptionalData": false
    }
  ]
}

But, --is-secret false don't work.
I expected that isSecret would be false.
isSecret is still true.

$ pi graphs update -u <my-user-id> -g <my-graph-id> --is-secret false
$ pi graphs get -u <my-user-id>
{
  "graphs": [
    {
      "id": "my-graph-id",
      "name": "my-graph",
      "unit": "count",
      "type": "int",
      "color": "shibafu",
      "timezone": "UTC",
      "purgeCacheURLs": null,
      "selfSufficient": "none",
      "isSecret": true,
      "publishOptionalData": false
    }
  ]
}

How do I get isSecret to be false?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.