Documentation ¶
Index ¶
- Variables
- func ConfirmFromUser(msg, helpText string) (bool, error)
- func Cyan(format string, a ...interface{}) string
- func ExactArgs(count int) cobra.PositionalArgs
- func GetAnalyzersAndTransformersData(ctx context.Context, deepsource deepsource.Client) (err error)
- func GetSingleLineInput(msg, helpText string) (string, error)
- func ListRemotes() (map[string][]string, error)
- func MaxNArgs(count int) cobra.PositionalArgs
- func NoArgs(cmd *cobra.Command, args []string) error
- func RepoArgumentResolver(arg string) ([]string, error)
- func SelectFromMultipleOptions(msg, helpText string, options []string) ([]string, error)
- func SelectFromOptions(msg, helpText string, opts []string) (string, error)
- func Yellow(format string, a ...interface{}) string
- type DeepSourceAnalyzersData
- type DeepSourceTransformersData
- type RemoteData
Constants ¶
This section is empty.
Variables ¶
var ( AnalyzersData DeepSourceAnalyzersData TransformersData DeepSourceTransformersData )
Functions ¶
func ConfirmFromUser ¶
Used for (Yes/No) questions
func ExactArgs ¶
func ExactArgs(count int) cobra.PositionalArgs
Validates if the number of args passed to a command is exactly same as that required
func GetAnalyzersAndTransformersData ¶
func GetAnalyzersAndTransformersData(ctx context.Context, deepsource deepsource.Client) (err error)
Get the list of all the supported analyzers and transformers with their corresponding data like shortcode, metaschema etc.
func GetSingleLineInput ¶
Used for Single Line Text Input Being used for getting "Import root" of user for configuring meta of Go analyzer
func ListRemotes ¶
Returns a map of remotes to their urls { "origin":["reponame","owner","provider"]} { "upstream":["reponame","owner","provider"]}
func MaxNArgs ¶
func MaxNArgs(count int) cobra.PositionalArgs
func RepoArgumentResolver ¶
Utility to parse the --repo flag
func SelectFromMultipleOptions ¶
Used for multiple inputs from the displayed options Example: ? Which languages/tools does your project use? > [ ] Shell
[ ] Rust [ ] Test Coverage [ ] Python [ ] Go
func SelectFromOptions ¶
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 DeepSourceAnalyzersData ¶
type RemoteData ¶
func ResolveRemote ¶
func ResolveRemote(repoArg string) (*RemoteData, error)