Documentation ¶
Index ¶
- func NewTabWriter() *tabwriter.Writer
- func PluralizeWithSize(s string, i int) string
- type Gists
- type Issues
- func (ip *Issues) Issues() lazygithub.Issues
- func (ip *Issues) MaxLenTitle() int
- func (ip *Issues) Print()
- func (ip *Issues) Repo() lazygithub.Repo
- func (ip *Issues) SetIssues(issues lazygithub.Issues) *Issues
- func (ip *Issues) SetMaxLenTitle(maxLenTitle int) *Issues
- func (ip *Issues) SetRepo(repo lazygithub.Repo) *Issues
- func (ip *Issues) SetShowRepo(showRepo bool) *Issues
- func (ip *Issues) SetUser(user lazygithub.User) *Issues
- func (ip *Issues) ShowRepo() bool
- func (ip *Issues) User() lazygithub.User
- type Printer
- func (p *Printer) DisableAutoExpend() bool
- func (p *Printer) Expanded() bool
- func (p *Printer) SetDisableAutoExpend(disableAutoExpend bool) *Printer
- func (p *Printer) SetExpanded(expanded bool) *Printer
- func (p *Printer) SetUser(user lazygithub.User) *Printer
- func (p *Printer) User() lazygithub.User
- type Pulls
- func (pp *Pulls) MaxLenTitle() int
- func (pp *Pulls) Print()
- func (pp *Pulls) Pulls() lazygithub.Pulls
- func (pp *Pulls) Repo() lazygithub.Repo
- func (pp *Pulls) SetMaxLenTitle(maxLenTitle int) *Pulls
- func (pp *Pulls) SetPulls(pulls lazygithub.Pulls) *Pulls
- func (pp *Pulls) SetRepo(repo lazygithub.Repo) *Pulls
- func (pp *Pulls) SetShowRepo(showRepo bool) *Pulls
- func (pp *Pulls) ShowRepo() bool
- type Repos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTabWriter ¶
NewTabWriter is generating a new tab writer which will be used across the printer package.
func PluralizeWithSize ¶
PluralizeWithSize will pluralize a string taking a number into account. This function can be deprecated as soon as https://github.com/gobuffalo/flect/pull/26 is merged.
Types ¶
type Gists ¶
type Gists struct { Printer // contains filtered or unexported fields }
Gists is the struct for an gists printer.
func NewGistsPrinter ¶
func NewGistsPrinter() *Gists
NewGistsPrinter is returning a new gists struct.
type Issues ¶
type Issues struct { Printer // contains filtered or unexported fields }
Issues is the struct for an issues printer.
func NewIssuesPrinter ¶
func NewIssuesPrinter() *Issues
NewIssuesPrinter is returning a new issues struct.
func (*Issues) Issues ¶
func (ip *Issues) Issues() lazygithub.Issues
Issues is returning the issues.
func (*Issues) MaxLenTitle ¶
MaxLenTitle is returning the maximum length of the title.
func (*Issues) SetIssues ¶
func (ip *Issues) SetIssues(issues lazygithub.Issues) *Issues
SetIssues is setting the issues.
func (*Issues) SetMaxLenTitle ¶
SetMaxLenTitle is setting the maximum length of the title before truncating the rest of the string. Should not be called from outside. calcExpended is setting the value.
func (*Issues) SetRepo ¶
func (ip *Issues) SetRepo(repo lazygithub.Repo) *Issues
SetRepo is setting the repo.
func (*Issues) SetShowRepo ¶
SetShowRepo is setting the show repo value.
func (*Issues) SetUser ¶
func (ip *Issues) SetUser(user lazygithub.User) *Issues
SetUser is setting the user.
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer is the struct for an printer.
func (*Printer) DisableAutoExpend ¶
DisableAutoExpend is returning the disable auto expend value.
func (*Printer) SetDisableAutoExpend ¶
SetDisableAutoExpend is setting the disable auto expand value.
func (*Printer) SetExpanded ¶
SetExpanded is setting the expanded value.
type Pulls ¶
type Pulls struct { Printer // contains filtered or unexported fields }
Pulls is the struct for an pulls printer.
func NewPullsPrinter ¶
func NewPullsPrinter() *Pulls
NewPullsPrinter is returning a new pulls struct.
func (*Pulls) MaxLenTitle ¶
MaxLenTitle is returning the maximum length of the title.
func (*Pulls) SetMaxLenTitle ¶
SetMaxLenTitle is setting the maximum length of the title before truncating the rest of the string. Should not be called from outside. calcExpended is setting the value. SetMaxLenTitle is setting the maximum length of the title.
func (*Pulls) SetPulls ¶
func (pp *Pulls) SetPulls(pulls lazygithub.Pulls) *Pulls
SetPulls is setting the pulls.
func (*Pulls) SetRepo ¶
func (pp *Pulls) SetRepo(repo lazygithub.Repo) *Pulls
SetRepo is setting the repo.
func (*Pulls) SetShowRepo ¶
SetShowRepo is setting the show repo value.
type Repos ¶
type Repos struct { Printer // contains filtered or unexported fields }
Repos is the struct for an repos printer.
func NewReposPrinter ¶
func NewReposPrinter() *Repos
NewReposPrinter is returning a new repos struct.
func (*Repos) SetRepos ¶
func (rp *Repos) SetRepos(repos lazygithub.Repos) *Repos
SetRepos is setting the repos.
func (*Repos) SetShowOwner ¶
SetShowOwner is setting the show owner value.