Documentation ¶
Index ¶
- Variables
- func Comment(c *gitea.Comment)
- func Comments(comments []*gitea.Comment)
- func FormatTime(t time.Time, machineReadable bool) string
- func IsInteractive() bool
- func IssueDetails(issue *gitea.Issue, reactions []*gitea.Reaction)
- func IssuesPullsList(issues []*gitea.Issue, output string, fields []string)
- func LabelsList(labels []*gitea.Label, output string)
- func LoginDetails(login *config.Login)
- func LoginsList(logins []config.Login, output string)
- func MilestoneDetails(milestone *gitea.Milestone)
- func MilestonesList(news []*gitea.Milestone, output string, fields []string)
- func NotificationsList(news []*gitea.NotificationThread, output string, fields []string)
- func OrganizationDetails(org *gitea.Organization)
- func OrganizationsList(organizations []*gitea.Organization, output string)
- func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ...)
- func PullsList(prs []*gitea.PullRequest, output string, fields []string)
- func ReleasesList(releases []*gitea.Release, output string)
- func RepoDetails(repo *gitea.Repository, topics []string)
- func ReposList(repos []*gitea.Repository, output string, fields []string)
- func TrackedTimesList(times []*gitea.TrackedTime, outputType string, fields []string, ...)
- func UserDetails(user *gitea.User)
- func UserList(user []*gitea.User, output string, fields []string)
Constants ¶
This section is empty.
Variables ¶
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()
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
var NotificationFields = []string{
"id",
"status",
"updated",
"index",
"type",
"state",
"title",
"repository",
}
NotificationFields are all available fields to print with NotificationsList
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()
var RepoFields = []string{
"description",
"forks",
"id",
"name",
"owner",
"stars",
"ssh",
"updated",
"url",
"permission",
"type",
}
RepoFields are the available fields to print with ReposList()
var TrackedTimeFields = []string{
"id",
"created",
"repo",
"issue",
"user",
"duration",
}
TrackedTimeFields contains all available fields for printing of tracked times.
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 FormatTime ¶
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 ¶
IssueDetails print an issue rendered to stdout
func IssuesPullsList ¶
IssuesPullsList prints a listing of issues & pulls
func LabelsList ¶
LabelsList prints a listing of labels
func LoginsList ¶
LoginsList prints a listing of logins
func MilestoneDetails ¶
MilestoneDetails print an milestone formatted to stdout
func MilestonesList ¶
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 ReleasesList ¶
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
UserDetails print a formatted user to stdout
Types ¶
This section is empty.