program

package
v0.0.0-...-a852642 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	STARS        = "Earned Stars Count 🌟"
	PRS          = "Pull Requests Count 🔨"
	ISSUES       = "Issues Count 📈"
	REPOSITORIES = "Repositories Count 📖"
)
View Source
const (
	SAME_USER    = "Continue with the same GitHub user"
	CHANGE_USER  = "Change GitHub user"
	QUIT_PROGRAM = "Quit the program"
)

Variables

View Source
var (
	ContinueProgramOptions     = []string{SAME_USER, CHANGE_USER, QUIT_PROGRAM}
	StatsOptions               = []string{STARS, PRS, ISSUES, REPOSITORIES}
	GitHubUsernamePlaceholders = []string{
		"theprimeagen",
		"torvalds",
		"dhh",
		"tj",
		"gaearon",
		"addyosmani",
		"yyx990803",
		"sindresorhus",
		"fabpot",
		"substack",
		"tpope",
		"pengwynn",
		"paulirish",
		"steveklabnik",
		"defunkt",
		"mojombo",
		"drnic",
		"avsm",
		"jashkenas",
		"hadley",
		"tomasohCHOM",
		"EthanThatOneKid",
		"acmcsufoss",
	}
)

Functions

func GrabRandomPlaceholder

func GrabRandomPlaceholder() string

Types

type ProgramState

type ProgramState struct {
	ExitState              bool
	Username               string
	SelectedStats          []string
	SelectedContinueOption string
}

func (*ProgramState) ExecuteAfterRetrieval

func (p *ProgramState) ExecuteAfterRetrieval()

func (*ProgramState) ExitAfterContinueOption

func (p *ProgramState) ExitAfterContinueOption() bool

func (*ProgramState) ExitIfRequested

func (p *ProgramState) ExitIfRequested(tprogram *tea.Program)

func (*ProgramState) RetrieveData

func (p *ProgramState) RetrieveData(ctx context.Context, client *github.Client)

Jump to

Keyboard shortcuts

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