print

package
v0.7.1-0...-009166e Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IssueFields = []string{
	"index",
	"state",
	"kind",
	"author",
	"author-id",
	"url",

	"title",
	"body",

	"created",
	"updated",
	"deadline",

	"assignees",
	"milestone",
	"labels",
	"comments",
}

IssueFields are all available fields to print with IssuesList()

View Source
var RepoFields = []string{
	"description",
	"forks",
	"id",
	"name",
	"owner",
	"stars",
	"ssh",
	"updated",
	"url",
	"permission",
	"type",
}

RepoFields are the available fields to print with ReposList()

View Source
var TrackedTimeFields = []string{
	"id",
	"created",
	"repo",
	"issue",
	"user",
	"duration",
}

TrackedTimeFields contains all available fields for printing of tracked times.

Functions

func Comment

func Comment(c *gitea.Comment)

Comment renders a comment to stdout

func Comments

func Comments(comments []*gitea.Comment)

Comments renders a list of comments to stdout

func FormatTime

func FormatTime(t time.Time) string

FormatTime give a date-time in local timezone if available

func IssueDetails

func IssueDetails(issue *gitea.Issue)

IssueDetails print an issue rendered to stdout

func IssuesPullsList

func IssuesPullsList(issues []*gitea.Issue, output string, fields []string)

IssuesPullsList prints a listing of issues & pulls

func LabelsList

func LabelsList(labels []*gitea.Label, output string)

LabelsList prints a listing of labels

func LoginDetails

func LoginDetails(login *config.Login)

LoginDetails print login entry to stdout

func LoginsList

func LoginsList(logins []config.Login, output string)

LoginsList prints a listing of logins

func MilestoneDetails

func MilestoneDetails(milestone *gitea.Milestone)

MilestoneDetails print an milestone formatted to stdout

func MilestonesList

func MilestonesList(miles []*gitea.Milestone, output string, state gitea.StateType)

MilestonesList prints a listing of milestones

func NotificationsList

func NotificationsList(news []*gitea.NotificationThread, output string, showRepository bool)

NotificationsList prints a listing of notification threads

func OrganizationsList

func OrganizationsList(organizations []*gitea.Organization, output string)

OrganizationsList prints a listing of the organizations

func PullDetails

func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ciStatus *gitea.CombinedStatus)

PullDetails print an pull rendered to stdout

func PullsList

func PullsList(prs []*gitea.PullRequest, output string)

PullsList prints a listing of pulls

func ReleasesList

func ReleasesList(releases []*gitea.Release, output string)

ReleasesList prints a listing of releases

func RepoDetails

func RepoDetails(repo *gitea.Repository, topics []string)

RepoDetails print an repo formatted to stdout

func ReposList

func ReposList(repos []*gitea.Repository, output string, fields []string)

ReposList prints a listing of the repos

func TrackedTimesList

func TrackedTimesList(times []*gitea.TrackedTime, outputType string, fields []string, printTotal bool)

TrackedTimesList print list of tracked times to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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