flags

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGitHubTokenNotFound = errors.New("GitHub token was not found or not provided")

Functions

This section is empty.

Types

type Flags

type Flags struct {
	GithubToken string
	ConfigPath  string
	LogVerbose  bool
}

func Parse

func Parse(programName string, args []string) (Flags, string, error)

Parse command line flags into a flags.Flags struct. API choice taken from: https://eli.thegreenplace.net/2020/testing-flag-parsing-in-go-programs/

Jump to

Keyboard shortcuts

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