cmd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const STATE_FILTER = "active,future"

Variables

This section is empty.

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 Config added in v0.1.4

type Config struct {
	Jira JiraConfig
}

Config stores the config

func (*Config) DefaultSprint added in v0.1.4

func (c *Config) DefaultSprint() string

DefaultSprint returns the default sprint

func (*Config) DefaultType added in v0.1.4

func (c *Config) DefaultType() string

DefaultType returns the default type or empty string

func (*Config) Save added in v0.1.4

func (c *Config) Save() error

Save the configuration to file

func (*Config) Sprints added in v0.1.4

func (c *Config) Sprints() []string

Sprints returns the list of sprint names

type CreateAnswers added in v0.1.4

type CreateAnswers struct {
	Project     string
	Title       string
	Description string
	Type        string
	Sprint      string
}

CreateAnswers stores the answers from the questions of the create command

type JiraBoard added in v0.1.4

type JiraBoard struct {
	ID   int
	Name string
}

JiraBoard is a simple represenation of a sprint

type JiraConfig added in v0.1.4

type JiraConfig struct {
	Base    string
	User    string `yaml:"user" viper:"user"`
	Pass    string `yaml:"pass" viper:"pass"`
	Project string
	Board   *JiraBoard
	Types   []string
	Sprints []*JiraSprint
	Images  bool
}

JiraConfig stores the config

type JiraSprint added in v0.1.4

type JiraSprint struct {
	ID   int
	Name string
}

JiraSprint is a simple represenation of a sprint

type SprintCompletedDate added in v0.1.4

type SprintCompletedDate []jira.Sprint

SprintCompletedDate is for sorting based on completed date

func (SprintCompletedDate) Len added in v0.1.4

func (a SprintCompletedDate) Len() int

Len fulfills the sort interface

func (SprintCompletedDate) Less added in v0.1.4

func (a SprintCompletedDate) Less(i, j int) bool

Less fulfills the sort interface

func (SprintCompletedDate) Swap added in v0.1.4

func (a SprintCompletedDate) Swap(i, j int)

Swap fulfills the sort interface

Jump to

Keyboard shortcuts

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