my-we

command module
v0.0.0-...-3b1c0a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 7 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL