internal

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditContents added in v0.6.3

func EditContents(title, description string) string

func EditTitleAndDesc added in v0.6.3

func EditTitleAndDesc(prefix, template string, editFunc func(program, file string) error) (string, string, error)

func ParceRepositoryFullName added in v0.6.0

func ParceRepositoryFullName(webURL string) string

func SweepMarkdownComment

func SweepMarkdownComment(text string) string

Types

type BrowseMethod added in v0.6.3

type BrowseMethod struct {
	Opener    browse.URLOpener
	Clipboard clipboard.Clipboard
	Opt       *BrowseOption
	URL       string
	ID        int
}

func (*BrowseMethod) Process added in v0.6.3

func (m *BrowseMethod) Process() (string, error)

type BrowseOption added in v0.6.3

type BrowseOption struct {
	Browse bool `short:"b" long:"browse" description:"open browser"`
	URL    bool `short:"u" long:"url" description:"show browse url"`
	Copy   bool `short:"c" long:"copy" description:"copy browse url to clipboard"`
}

func (*BrowseOption) HasBrowse added in v0.6.3

func (b *BrowseOption) HasBrowse() bool

type Method

type Method interface {
	Process() (string, error)
}

type MockMethod added in v0.6.0

type MockMethod struct{}

func (*MockMethod) Process added in v0.6.0

func (m *MockMethod) Process() (string, error)

type ProjectProfileOption added in v0.6.0

type ProjectProfileOption struct {
	Project string `long:"project" value-name:"<group>/<name>" description:"Specify the project to be processed"`
	Profile string `long:"profile" value-name:"<profile>" description:"Specify the profile defined in the config file"`
}

Jump to

Keyboard shortcuts

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