 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func DisplayURL(urlStr string) string
- func FuzzyAgo(ago time.Duration) string
- func FuzzyAgoAbbr(now time.Time, createdAt time.Time) string
- func Humanize(s string) string
- func IsCygwinTerminal(f *os.File) bool
- func IsURL(s string) bool
- func OpenInBrowser(url string) error
- func Pluralize(num int, thing string) string
- func Spinner(w io.Writer) *spinner.Spinner
- type TablePrinter
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var IsTerminal = func(f *os.File) bool { return isatty.IsTerminal(f.Fd()) || IsCygwinTerminal(f) }
      View Source
      
  var StartSpinner = func(s *spinner.Spinner) {
	s.Start()
}
    We do this so we can stub out the spinner in tests -- it made things really flakey. This is not an elegant solution.
      View Source
      
  
    
  
var StopSpinner = func(s *spinner.Spinner) {
	s.Stop()
}
    Functions ¶
func DisplayURL ¶ added in v0.11.1
func IsCygwinTerminal ¶ added in v0.11.0
func OpenInBrowser ¶
OpenInBrowser opens the url in a web browser based on OS and $BROWSER environment variable
Types ¶
type TablePrinter ¶
type TablePrinter interface {
	IsTTY() bool
	AddField(string, func(int, string) string, func(string) string)
	EndRow()
	Render() error
}
    func NewTablePrinter ¶
func NewTablePrinter(io *iostreams.IOStreams) TablePrinter
 Click to show internal directories. 
   Click to hide internal directories.