cli

package
v0.0.0-...-8f660a8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewLogger

func NewLogger() (logger *zap.Logger, cleanup func())

Types

type BuiltinAnalyzerOptionProvider

type BuiltinAnalyzerOptionProvider = func() analysis.AnalyzerOption

type BuiltinFSProvider

type BuiltinFSProvider = func() fs.FS

type RootCmd

type RootCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func NewRootCmd

func NewRootCmd(commandName string, builtinFSProvider BuiltinFSProvider, managerOpts ...document.ManagerOpt) *RootCmd

Creates a new RootCmd params:

commandName: what to call the base command in examples (e.g., "starlark-lsp", "tilt lsp")
builtinFSProvider: provides an fs.FS from which tilt builtin docs should be read
                 if nil, a --builtin-paths param will be added for specifying paths
managerOpts: a variable number of ManagerOpt arguments to configure the document manager.

Jump to

Keyboard shortcuts

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