cmd

package
v0.0.0-...-9a39c33 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Comment string
View Source
var Copy bool
View Source
var RootCmd = &cobra.Command{
	Use:   "blight",
	Short: "Some useful tools for Wrike developer",
	Long:  `Integrate your terminal with Wrike`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type IDResponse

type IDResponse struct {
	ID      string `json:"id"`
	APIV2ID string `json:"apiV2Id"`
}

type Response

type Response struct {
	Kind string        `json:"kind"`
	Data []interface{} `json:"data"`
}

type Status

type Status struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Standard bool   `json:"standard"`
	Group    string `json:"group"`
	Hidden   bool   `json:"hidden"`
	Color    string `json:"color"`
}

type Task

type Task struct {
	ID          string    `json:"id"`
	AccountID   string    `json:"accountId"`
	Title       string    `json:"title"`
	Status      string    `json:"status"`
	Importance  string    `json:"importance"`
	CreatedDate time.Time `json:"createdDate"`
	UpdatedDate time.Time `json:"updatedDate"`
	Dates       struct {
		Type     string `json:"type"`
		Duration int    `json:"duration"`
		Start    string `json:"start"`
		Due      string `json:"due"`
	} `json:"dates"`
	Scope          string `json:"scope"`
	CustomStatusID string `json:"customStatusId"`
	Permalink      string `json:"permalink"`
	Priority       string `json:"priority"`
	V2ID           int
}

func NewTask

func NewTask(data interface{}) Task

type Workflow

type Workflow struct {
	ID             string   `json:"id"`
	Name           string   `json:"name"`
	Standard       bool     `json:"standard"`
	Hidden         bool     `json:"hidden"`
	CustomStatuses []Status `json:"customStatuses"`
}

Jump to

Keyboard shortcuts

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