cli

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package cli provides the command-line interface for GitHubby

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "unknown"
	BuildDate = "unknown"
)

Version information (set via ldflags)

Functions

func Execute

func Execute()

Execute runs the root command

func GetDryRun

func GetDryRun() bool

GetDryRun returns the dry-run flag

func GetLogger

func GetLogger() *logrus.Logger

GetLogger returns the global logger

func GetToken

func GetToken() string

GetToken returns the configured token, checking multiple sources Priority: CLI flag > environment variable > stored token (keychain/config)

func GetTokenWithAuth

func GetTokenWithAuth(ctx context.Context) (string, error)

GetTokenWithAuth returns the token using the auth package's resolution logic This checks CLI flag, environment variable, and stored tokens

func GetVerbose

func GetVerbose() bool

GetVerbose returns the verbose flag

func RunTUI

func RunTUI() error

RunTUI launches the unified TUI application

func SetVersionInfo

func SetVersionInfo(version, commit, buildDate string)

SetVersionInfo sets the version information (called from main)

Types

This section is empty.

Jump to

Keyboard shortcuts

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