utils

package
v0.0.0-...-ab4ee46 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommitFormat = "%h %an: %s (%ad)."
	DateFormat   = "%Y-%m-%d %H:%M:%S"
	UserAgent    = "qit-cli"
)

Variables

This section is empty.

Functions

func BranchExists

func BranchExists(name string) (bool, error)

func CurrentBranch

func CurrentBranch() (string, error)

func Git

func Git(quiet bool, args ...string) error

func GitOutput

func GitOutput(args ...string) (string, error)

func HTTPGet

func HTTPGet(url string) (*http.Response, error)

func HTTPGetWithHeaders

func HTTPGetWithHeaders(url string, headers map[string]string) (*http.Response, error)

func PromptForKey

func PromptForKey(prompt string) (rune, error)

func ReadBody

func ReadBody(resp *http.Response) ([]byte, error)

func RequireArgs

func RequireArgs(args []string, missingMessage string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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