view

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package view implements the milestone view command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdView

func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Command

NewCmdView creates the view command

Types

type MilestoneWithIssues added in v0.4.0

type MilestoneWithIssues struct {
	Number       int         `json:"number"`
	Title        string      `json:"title"`
	State        string      `json:"state"`
	DueOn        string      `json:"due_on,omitempty"`
	Description  string      `json:"description,omitempty"`
	URL          string      `json:"url"`
	Issues       []api.Issue `json:"issues,omitempty"`
	TotalIssues  int         `json:"total_issues"`
	ClosedIssues int         `json:"closed_issues"`
	OpenIssues   int         `json:"open_issues"`
}

MilestoneWithIssues combines milestone data with associated issues for JSON output

type ViewOptions

type ViewOptions struct {
	IO         *iostreams.IOStreams
	HttpClient func() (*http.Client, error)
	BaseRepo   func() (string, error)

	// Arguments
	Repository string
	Number     int

	// Flags
	Web    bool
	JSON   bool
	Issues bool // Show associated issues (default: true)
}

Source Files

  • view.go

Jump to

Keyboard shortcuts

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