cmdutils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

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