commands

package
v0.0.0-...-c33ec28 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 37 Imported by: 0

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
View Source
var RebuildCache bool

Global flags

Functions

func Execute

func Execute()

func NewRootCommand

func NewRootCommand() *cobra.Command

func ResolveUser

func ResolveUser(repo *cache.RepoCache, args []string) (*cache.IdentityCache, []string, error)

Types

type Env

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

Env is the environment of a command

type JSONBugExcerpt

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"`
	Assignee     JSONIdentity   `json:"assignee"`
	Ccb          []JSONCcbInfo  `json:"ccb"`

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

type JSONBugSnapshot

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"`
	Assignee     JSONIdentity   `json:"assignee"`
	Ccb          []JSONCcbInfo  `json:"ccb"`
	Actors       []JSONIdentity `json:"actors"`
	Participants []JSONIdentity `json:"participants"`
	Comments     []JSONComment  `json:"comments"`
}

type JSONCcbInfo

type JSONCcbInfo struct {
	User   JSONIdentity
	Status string
	State  string
}

type JSONComment

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

func NewJSONComment

func NewJSONComment(comment bug.Comment) JSONComment

type JSONIdentity

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

func NewJSONIdentity

func NewJSONIdentity(i identity.Interface) JSONIdentity

func NewJSONIdentityFromExcerpt

func NewJSONIdentityFromExcerpt(excerpt *cache.IdentityExcerpt) JSONIdentity

func NewJSONIdentityFromLegacyExcerpt

func NewJSONIdentityFromLegacyExcerpt(excerpt *cache.LegacyAuthorExcerpt) JSONIdentity

type JSONTime

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

func NewJSONTime

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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