print

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BranchFields = []string{
	"name",
	"protected",
	"user-can-merge",
	"user-can-push",
	"protection",
}

BranchFields are all available fields to print with BranchesList()

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

	"title",
	"body",

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

	"assignees",
	"milestone",
	"labels",
	"comments",
	"owner",
	"repo",
}

IssueFields are all available fields to print with IssuesList()

View Source
var MilestoneFields = []string{
	"title",
	"state",
	"items_open",
	"items_closed",
	"items",
	"duedate",
	"description",
	"created",
	"updated",
	"closed",
	"id",
}

MilestoneFields are all available fields to print with MilestonesList

View Source
var NotificationFields = []string{
	"id",
	"status",
	"updated",

	"index",
	"type",
	"state",
	"title",
	"repository",
}

NotificationFields are all available fields to print with NotificationsList

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

	"title",
	"body",

	"mergeable",
	"base",
	"base-commit",
	"head",
	"diff",
	"patch",

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

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

PullFields are all available fields to print with PullsList()

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.

View Source
var UserFields = []string{
	"id",
	"login",
	"full_name",
	"email",
	"avatar_url",
	"language",
	"is_admin",
	"restricted",
	"prohibit_login",
	"location",
	"website",
	"description",
	"visibility",
	"activated",
	"lastlogin_at",
	"created_at",
}

UserFields are the available fields to print with UserList()

Functions

func ActionRunDetails added in v0.12.0

func ActionRunDetails(run *gitea.ActionWorkflowRun)

ActionRunDetails prints detailed information about a workflow run

func ActionRunsList added in v0.12.0

func ActionRunsList(runs []*gitea.ActionWorkflowRun, output string)

ActionRunsList prints a list of workflow runs

func ActionSecretsList added in v0.12.0

func ActionSecretsList(secrets []*gitea.Secret, output string)

ActionSecretsList prints a list of action secrets

func ActionVariableDetails added in v0.12.0

func ActionVariableDetails(variable *gitea.RepoActionVariable)

ActionVariableDetails prints details of a specific action variable

func ActionVariablesList added in v0.12.0

func ActionVariablesList(variables []*gitea.RepoActionVariable, output string)

ActionVariablesList prints a list of action variables

func ActionWorkflowJobsList added in v0.12.0

func ActionWorkflowJobsList(jobs []*gitea.ActionWorkflowJob, output string)

ActionWorkflowJobsList prints a list of workflow jobs

func BranchesList added in v0.10.0

func BranchesList(branches []*gitea.Branch, protections []*gitea.BranchProtection, output string, fields []string)

BranchesList prints a listing of the branches

func Comment added in v0.7.0

func Comment(c *gitea.Comment)

Comment renders a comment to stdout

func Comments added in v0.7.0

func Comments(comments []*gitea.Comment)

Comments renders a list of comments to stdout

func FormatTime

func FormatTime(t time.Time, machineReadable bool) string

FormatTime provides a string for the given time value. If machineReadable is set, a UTC RFC3339 string is returned, otherwise a simplified string in local time is used.

func IsInteractive added in v0.9.0

func IsInteractive() bool

IsInteractive checks if the output is piped, but NOT if the session is run interactively..

func IssueDetails

func IssueDetails(issue *gitea.Issue, reactions []*gitea.Reaction)

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(news []*gitea.Milestone, output string, fields []string)

MilestonesList prints a listing of milestones

func NotificationsList

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

NotificationsList prints a listing of notification threads

func OrganizationDetails added in v0.9.0

func OrganizationDetails(org *gitea.Organization)

OrganizationDetails prints details of an org with formatting

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, fields []string)

PullsList prints a listing of pulls

func ReleaseAttachmentsList added in v0.10.0

func ReleaseAttachmentsList(attachments []*gitea.Attachment, output string)

ReleaseAttachmentsList prints a listing of release attachments

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

func UserDetails added in v0.9.0

func UserDetails(user *gitea.User)

UserDetails print a formatted user to stdout

func UserList added in v0.9.0

func UserList(user []*gitea.User, output string, fields []string)

UserList prints a listing of the users

func WebhookDetails added in v0.12.0

func WebhookDetails(hook *gitea.Hook)

WebhookDetails prints detailed information about a webhook

func WebhooksList added in v0.12.0

func WebhooksList(hooks []*gitea.Hook, output string)

WebhooksList prints a listing of webhooks

func WorkflowsList added in v0.12.0

func WorkflowsList(workflows []*gitea.ContentsResponse, activeStatus map[string]bool, output string)

WorkflowsList prints a list of workflow files with active status

Types

This section is empty.

Jump to

Keyboard shortcuts

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