Giter Site home page Giter Site logo

a9sharvest's Introduction

a9sharvest

a9sharvest is a CLI tool for Harvest.

Installation

$ brew tap anynines/tap
$ brew install a9sharvest

Requirements

Before you can use a9sharvest you need a token and the account ID. You can get both by accessing the developer tools and creating a new token.

Usage

$ export ACCOUNT_ID=12345
$ export TOKEN=12345.pt.Avfe-WEFWEF...D4z

$ export LOG_LEVEL=debug # `debug`, `trace` or empty

# Either TAGS or PATTERN must exist.
# If both, TAGS and PATTERN, are set, TAGS will be applied only.
$ export TAGS="[meeting_orga_lane],[support_lane]"
$ export PATTERN="\[DS-\d+\]"

$ export SKIP_PROJECT_IDS="12345,6789" # do not skip any project by default
$ export ALLOWED_PROJECT_IDS="12345,6789" # only process projects in this list if none empty
$ export ALLOWED_USER_IDS="3344,4444" # empty by default
$ export ALLOWED_TASK_NAMES="Admin,Dev" # empty by default

$ export FROM="20200901" # 14 days ago by default
$ export TO="20200914" # today by default

$ a9sharvest download -o entries.json

$ a9sharvest group -i entries.json
          TAG         | HOURS  |   %
----------------------+--------+--------
  [meeting_orga_lane] |  97.50 | 48.75
  [support_lane]      | 100.50 | 50.25
  [unknown]           |   2.00 |  1.00

$ a9sharvest group -i entries.json -o csv
Tag,Hours,Percentage
[meeting_orga_lane],97.50,48.75
[support_lane],100.50,50.25
[unknown],2.00,1.00

Manual Release Building

git tag -a v1.1.0
GOOS=darwin GOARCH=amd64 go build -ldflags "-X github.com/anynines/a9sharvest/pkg/version.Version=v1.1.0"

Links

a9sharvest's People

Contributors

cedrikheusser avatar gerdalliu avatar gogolok avatar

Stargazers

 avatar

Watchers

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

a9sharvest's Issues

Tags are not case insensitive

Tags are case sensitive.

Tag sales is in small letters:

➜  a9sharvest git:(add_token_documentation) export TAGS="[standard_lane][sales]"
➜  a9sharvest git:(add_token_documentation) a9sharvest group
[sales] = 0.89
[unknown] = 62.18999999999999
[standard_lane] = 0.5

Tag Sales is camel case:

➜  a9sharvest git:(add_token_documentation) export TAGS="[standard_lane][Sales]"
➜  a9sharvest git:(add_token_documentation) ./a9sharvest group
[unknown] = 64.19
[standard_lane] = 0.5

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.