loc

package
v0.0.0-...-a8c9a41 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// rootCmd is the Viper root command
	RootCmd = &cobra.Command{
		Use: "loc-main",
		PersistentPreRun: func(cmd *cobra.Command, args []string) {

			switch flags.loglevel {
			case "error":
				log.SetLevel(logrus.ErrorLevel)
			case "warn":
				log.SetLevel(logrus.WarnLevel)
			case "info":
				log.SetLevel(logrus.InfoLevel)
			case "debug":
				log.SetLevel(logrus.DebugLevel)
			case "trace":
				log.SetLevel(logrus.TraceLevel)
			default:
				log.SetLevel(logrus.InfoLevel)
			}
			setup()
		},
	}
)

Functions

This section is empty.

Types

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

Flags struct contains settings for the root command

type PositionSummaryResults

type PositionSummaryResults struct {
	Summary *types.SearchPlaceIndexForPositionSummary
	Results []types.SearchForPositionResult
}

type Sercices

type Sercices struct {
	// contains filtered or unexported fields
}

type SuggestionSummaryResults

type SuggestionSummaryResults struct {
	Summary *types.SearchPlaceIndexForSuggestionsSummary
	Results []types.SearchForSuggestionsResult
}

type TextSummaryResults

type TextSummaryResults struct {
	Summary *types.SearchPlaceIndexForTextSummary
	Results []types.SearchForTextResult
}

Jump to

Keyboard shortcuts

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