commands

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 52 Imported by: 1

Documentation

Overview

Package commands contains the CLI commands

Index

Constants

This section is empty.

Variables

View Source
var GitCommit string

These variables are initialized externally during the build. See the Makefile.

View Source
var GitExactTag string
View Source
var GitLastTag string

Functions

func Execute

func Execute()

func NewRootCommand added in v0.8.0

func NewRootCommand() *cobra.Command

Types

type Env added in v0.8.0

type Env struct {
	// contains filtered or unexported fields
}

Env is the environment of a command

type JSONBugExcerpt added in v0.8.0

type JSONBugExcerpt struct {
	Id         string   `json:"id"`
	HumanId    string   `json:"human_id"`
	CreateTime JSONTime `json:"create_time"`
	EditTime   JSONTime `json:"edit_time"`

	Status       string         `json:"status"`
	Labels       []bug.Label    `json:"labels"`
	Title        string         `json:"title"`
	Actors       []JSONIdentity `json:"actors"`
	Participants []JSONIdentity `json:"participants"`
	Author       JSONIdentity   `json:"author"`

	Comments int               `json:"comments"`
	Metadata map[string]string `json:"metadata"`
}

type JSONBugSnapshot added in v0.8.0

type JSONBugSnapshot struct {
	Id           string         `json:"id"`
	HumanId      string         `json:"human_id"`
	CreateTime   JSONTime       `json:"create_time"`
	EditTime     JSONTime       `json:"edit_time"`
	Status       string         `json:"status"`
	Labels       []bug.Label    `json:"labels"`
	Title        string         `json:"title"`
	Author       JSONIdentity   `json:"author"`
	Actors       []JSONIdentity `json:"actors"`
	Participants []JSONIdentity `json:"participants"`
	Comments     []JSONComment  `json:"comments"`
}

type JSONComment added in v0.8.0

type JSONComment struct {
	Id      string       `json:"id"`
	HumanId string       `json:"human_id"`
	Author  JSONIdentity `json:"author"`
	Message string       `json:"message"`
}

func NewJSONComment added in v0.8.0

func NewJSONComment(comment bug.Comment) JSONComment

type JSONIdentity added in v0.8.0

type JSONIdentity struct {
	Id      string `json:"id"`
	HumanId string `json:"human_id"`
	Name    string `json:"name"`
	Login   string `json:"login"`
}

func NewJSONIdentity added in v0.8.0

func NewJSONIdentity(i identity.Interface) JSONIdentity

func NewJSONIdentityFromExcerpt added in v0.8.0

func NewJSONIdentityFromExcerpt(excerpt *cache.IdentityExcerpt) JSONIdentity

func NewJSONIdentityFromLegacyExcerpt added in v0.8.0

func NewJSONIdentityFromLegacyExcerpt(excerpt *cache.LegacyAuthorExcerpt) JSONIdentity

type JSONTime added in v0.8.0

type JSONTime struct {
	Timestamp int64        `json:"timestamp"`
	Time      time.Time    `json:"time"`
	Lamport   lamport.Time `json:"lamport,omitempty"`
}

func NewJSONTime added in v0.8.0

func NewJSONTime(t time.Time, l lamport.Time) JSONTime

Directories

Path Synopsis
Package input contains helpers to use a text editor as an input for various field of a bug
Package input contains helpers to use a text editor as an input for various field of a bug

Jump to

Keyboard shortcuts

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