Back to godoc.org

Package commands

v0.0.0-...-c0f6e6a
Latest Go to latest

The latest major version is .

Published: Aug 30, 2020 | License: GPL3 | Module: github.com/MichaelMure/git-bug

Overview

Package commands contains the CLI commands

Index

Variables

var GitCommit string

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

var GitExactTag string
var GitLastTag string

func Execute

func Execute()

func NewRootCommand

func NewRootCommand() *cobra.Command

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"`

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier