printer

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTabWriter

func NewTabWriter() *tabwriter.Writer

NewTabWriter is generating a new tab writer which will be used across the printer package.

func PluralizeWithSize

func PluralizeWithSize(s string, i int) string

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.

func (*Gists) Gists

func (gp *Gists) Gists() lazygithub.Gists

Gists is returning the gists.

func (*Gists) Print

func (gp *Gists) Print()

Print is printing the gists.

func (*Gists) SetGists

func (gp *Gists) SetGists(gists lazygithub.Gists) *Gists

SetGists is setting the gists.

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

func (ip *Issues) MaxLenTitle() int

MaxLenTitle is returning the maximum length of the title.

func (*Issues) Print

func (ip *Issues) Print()

Print is printing the issues.

func (*Issues) Repo

func (ip *Issues) Repo() lazygithub.Repo

Repo is returning the repo.

func (*Issues) SetIssues

func (ip *Issues) SetIssues(issues lazygithub.Issues) *Issues

SetIssues is setting the issues.

func (*Issues) SetMaxLenTitle

func (ip *Issues) SetMaxLenTitle(maxLenTitle int) *Issues

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

func (ip *Issues) SetShowRepo(showRepo bool) *Issues

SetShowRepo is setting the show repo value.

func (*Issues) SetUser

func (ip *Issues) SetUser(user lazygithub.User) *Issues

SetUser is setting the user.

func (*Issues) ShowRepo

func (ip *Issues) ShowRepo() bool

ShowRepo is returning the show repo value.

func (*Issues) User

func (ip *Issues) User() lazygithub.User

User is returning the user.

type Printer

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

Printer is the struct for an printer.

func (*Printer) DisableAutoExpend

func (p *Printer) DisableAutoExpend() bool

DisableAutoExpend is returning the disable auto expend value.

func (*Printer) Expanded

func (p *Printer) Expanded() bool

Expanded is returning the expanded value.

func (*Printer) SetDisableAutoExpend

func (p *Printer) SetDisableAutoExpend(disableAutoExpend bool) *Printer

SetDisableAutoExpend is setting the disable auto expand value.

func (*Printer) SetExpanded

func (p *Printer) SetExpanded(expanded bool) *Printer

SetExpanded is setting the expanded value.

func (*Printer) SetUser

func (p *Printer) SetUser(user lazygithub.User) *Printer

SetUser is setting the user.

func (*Printer) User

func (p *Printer) User() lazygithub.User

User is returning the user.

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

func (pp *Pulls) MaxLenTitle() int

MaxLenTitle is returning the maximum length of the title.

func (*Pulls) Print

func (pp *Pulls) Print()

Print is printing the pulls.

func (*Pulls) Pulls

func (pp *Pulls) Pulls() lazygithub.Pulls

Pulls is returning the pulls.

func (*Pulls) Repo

func (pp *Pulls) Repo() lazygithub.Repo

Repo is returning the repo.

func (*Pulls) SetMaxLenTitle

func (pp *Pulls) SetMaxLenTitle(maxLenTitle int) *Pulls

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

func (pp *Pulls) SetShowRepo(showRepo bool) *Pulls

SetShowRepo is setting the show repo value.

func (*Pulls) ShowRepo

func (pp *Pulls) ShowRepo() bool

ShowRepo is returning 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) Path

func (rp *Repos) Path() string

Path is returning the path.

func (*Repos) Print

func (rp *Repos) Print()

Print is printing the repos.

func (*Repos) Repos

func (rp *Repos) Repos() lazygithub.Repos

Repos is returning the repos.

func (*Repos) SetPath

func (rp *Repos) SetPath(path string) *Repos

SetPath is setting the path. Required to show the "cloned" information.

func (*Repos) SetRepos

func (rp *Repos) SetRepos(repos lazygithub.Repos) *Repos

SetRepos is setting the repos.

func (*Repos) SetShowOwner

func (rp *Repos) SetShowOwner(showOwner bool) *Repos

SetShowOwner is setting the show owner value.

func (*Repos) ShowOwner

func (rp *Repos) ShowOwner() bool

ShowOwner is returning the show owner value.

Jump to

Keyboard shortcuts

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