Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.06 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.06 KB

my-we

Build Status Go Report Card

Golang CLI for WE https://mytedata.net

Installation

$ go get github.com/mohan3d/my-we

Usage

# Display all info about your account.
$ my-we -email <WE_EMAIL> -password <WE_PASSWORD>

# Display only usage of your service.
# -only value must be one of (profile, usage, days and points).
$ my-we -email <WE_EMAIL> -password <WE_PASSWORD> -only usage

# If email or password not provided.
# email/password will be read from env variables.
$ export WE_EMAIL=<WE_ACCOUNT_EMAIL>
$ export WE_PASSWORD=<WE_ACCOUNT_PASSWORD>
$ my-we -only profile

Testing

WE_EMAIL and WE_PASSWORD must be exported to environment variables before running tests.

$ export WE_EMAIL=<WE_ACCOUNT_EMAIL>
$ export WE_PASSWORD=<WE_ACCOUNT_PASSWORD>
$ cd $GOPATH/src/github.com/mohan3d/my-we
$ go test ./we