query

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagParser

type FlagParser interface {
	GetBool(string) (bool, error)
	GetString(string) (string, error)
	GetStringArray(string) ([]string, error)
	GetUint(name string) (uint, error)
	Set(name, value string) error
}

FlagParser wraps pflag.FlagSet struct.

type Issue

type Issue struct {
	Project string
	Flags   FlagParser
	// contains filtered or unexported fields
}

Issue is a query type for issue command.

func NewIssue

func NewIssue(project string, flags FlagParser) (*Issue, error)

NewIssue creates and initializes a new Issue type.

func (*Issue) Get

func (i *Issue) Get() string

Get returns constructed jql query.

func (*Issue) Params

func (i *Issue) Params() *IssueParams

Params returns issue command params.

type IssueParams

type IssueParams struct {
	Latest        bool
	Watching      bool
	Resolution    string
	IssueType     string
	Parent        string
	Status        string
	Priority      string
	Reporter      string
	Assignee      string
	Component     string
	Created       string
	Updated       string
	CreatedAfter  string
	UpdatedAfter  string
	CreatedBefore string
	UpdatedBefore string

	Labels  []string
	OrderBy string
	Reverse bool
	Limit   uint
	// contains filtered or unexported fields
}

IssueParams is issue command parameters.

type Sprint

type Sprint struct {
	Flags FlagParser
	// contains filtered or unexported fields
}

Sprint is a query type for sprint command.

func NewSprint

func NewSprint(flags FlagParser) (*Sprint, error)

NewSprint creates and initializes a new Sprint type.

func (*Sprint) Get

func (s *Sprint) Get() string

Get returns constructed query params.

func (*Sprint) Params

func (s *Sprint) Params() *SprintParams

Params returns sprint command params.

type SprintParams

type SprintParams struct {
	Status  string
	Current bool
	Prev    bool
	Next    bool
	Limit   uint
	// contains filtered or unexported fields
}

SprintParams is sprint command parameters.

Jump to

Keyboard shortcuts

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