Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct {
}
Color is a color text output
type Output ¶
type Output interface {
Inline(string)
Info(string)
Error(string)
Fatal(string)
StarLine(*model.Star)
Star(*model.Star)
Tick()
}
Output represents an output option
type Text ¶
type Text struct {
}
Text is a monochrome text output
func (*Text) Info ¶
Info displays information
Example ¶
text.Info("This is info")
Output: This is info
func (*Text) Inline ¶ added in v0.2.0
Inline displays text in line
Example ¶
text.Inline("This is inline")
Output: This is inline
func (*Text) Star ¶
Star displays a star
Example ¶
fullName := "hoop33/limo"
language := "Go"
description := "A CLI for managing starred Git repositories"
homepage := "https://github.com/hoop33/limo"
url := "https://github.com/hoop33/limo.git"
star := &model.Star{
FullName: &fullName,
Stargazers: 1000000,
Language: &language,
Description: &description,
Homepage: &homepage,
URL: &url,
StarredAt: time.Date(2016, time.June, 21, 14, 56, 5, 0, time.UTC),
Tags: []model.Tag{
{
Name: "cli",
},
{
Name: "git",
},
},
}
text.Star(star)
Output: hoop33/limo (*: 1000000) (Go) cli, git A CLI for managing starred Git repositories Home page: https://github.com/hoop33/limo URL: https://github.com/hoop33/limo.git Starred on Tue Jun 21 14:56:05 UTC 2016
Click to show internal directories.
Click to hide internal directories.