Documentation
¶
Index ¶
- func NewLSPCommand() *cobra.Command
- func NewLSPStartCommand() *cobra.Command
- type ConfigLoader
- type LSPServer
- type Provider
- func (p *Provider) GetAliases() []internal.CommandAlias
- func (p *Provider) GetCommand() *cobra.Command
- func (p *Provider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
- func (p *Provider) GetFlagsBuilder() flags.Builder
- func (p *Provider) GetGroup() string
- func (p *Provider) GetName() string
- func (p *Provider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
- func (p *Provider) IsExperimental() bool
- type ServerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLSPCommand ¶
NewLSPCommand creates a new `atmos lsp` command.
func NewLSPStartCommand ¶
NewLSPStartCommand creates a new `atmos lsp start` command.
Types ¶
type ConfigLoader ¶
type ConfigLoader func(configAndStacksInfo schema.ConfigAndStacksInfo, processStacks bool) (schema.AtmosConfiguration, error)
ConfigLoader is a function type for loading Atmos configuration. This allows for dependency injection in tests.
type LSPServer ¶
type LSPServer interface {
RunStdio() error
RunTCP(address string) error
RunWebSocket(address string) error
}
LSPServer defines the interface for LSP server operations. This interface enables dependency injection and testing.
type Provider ¶
type Provider struct{}
Provider implements CommandProvider for the lsp command.
func (*Provider) GetAliases ¶
func (p *Provider) GetAliases() []internal.CommandAlias
GetAliases returns a list of command aliases to register.
func (*Provider) GetCommand ¶
GetCommand returns the lsp command.
func (*Provider) GetCompatibilityFlags ¶
func (p *Provider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
GetCompatibilityFlags returns compatibility flags for this command.
func (*Provider) GetFlagsBuilder ¶
GetFlagsBuilder returns the flags builder for this command.
func (*Provider) GetPositionalArgsBuilder ¶
func (p *Provider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
GetPositionalArgsBuilder returns the positional args builder for this command.
func (*Provider) IsExperimental ¶
IsExperimental returns whether this command is experimental.
type ServerFactory ¶
type ServerFactory func(ctx context.Context, atmosConfig *schema.AtmosConfiguration) (LSPServer, error)
ServerFactory is a function type for creating LSP servers. This allows for dependency injection in tests.