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: 0

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