cmdutils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0 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

This section is empty.

Variables

This section is empty.

Functions

func ConfirmFromUser

func ConfirmFromUser(msg string, helpText string) (bool, error)

Used for (Yes/No) questions

func GetSingleLineInput

func GetSingleLineInput(msg string, helpText string) (string, error)

Used for Single Line Text Input Being used for getting "Import root" of user for configuring meta of Go analyzer

func ListRemotes

func ListRemotes() (map[string][]string, error)

Returns a map of remotes to their urls { "origin":["reponame","owner","provider"]} { "upstream":["reponame","owner","provider"]}

func RepoArgumentResolver

func RepoArgumentResolver(arg string) ([]string, error)

Utility to parse the --repo flag

func SelectFromOptions

func SelectFromOptions(msg string, helpText string, opts []string) (string, error)

Used for Single Option Selection from Multiple Options Being used for selecting Java version for configuring meta of Java analyzer > * 1

  • 2
  • 3

Types

type CLIFactory

type CLIFactory struct {
	Config       cliConfig.ConfigData
	GQLClient    *api.DSClient
	HostName     string
	TokenExpired bool
}

Jump to

Keyboard shortcuts

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