Documentation
¶
Overview ¶
Package cliapp owns the target-independent schema for trb/cli applications.
Index ¶
Constants ¶
View Source
const ( PackageName = "trb/cli" ModulePath = "trb/cli/index" ProjectProvider = "trb.cli.schema" )
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(input packageextension.ProjectDeclarationInput, requests []InvocationRequest) (*Manifest, []Issue)
Types ¶
type Invocation ¶
type InvocationRequest ¶
type InvocationRequest struct {
ModulePath string
Offset int
Root TypeReference
Span packageextension.SourceSpan
}
type Issue ¶
type Issue struct {
ModulePath string
Message string
Span packageextension.SourceSpan
}
type Manifest ¶
type Manifest struct {
Invocations []Invocation
}
func ManifestFrom ¶
func (*Manifest) ExtensionName ¶
func (*Manifest) Invocation ¶
func (m *Manifest) Invocation(modulePath string, offset int) (*Invocation, bool)
func (*Manifest) InvocationIndex ¶
type Schema ¶
type Schema struct {
Root Record
SubcommandField string
SubcommandOrder int
SubcommandEnum TypeReference
Commands []Command
}
type TypeReference ¶
Click to show internal directories.
Click to hide internal directories.