autocomplete

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoComp

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

ProtoComp represents a protobuf symbol autocompletion functionality.

func NewProtoComp

func NewProtoComp(fs afero.Fs, cfgFunc func() (config.Config, error)) *ProtoComp

NewProtoComp creates a new ProtoComp instance.

func (*ProtoComp) CompleteMethod

func (c *ProtoComp) CompleteMethod(
	_ *cobra.Command,
	args []string,
	toComplete string,
) ([]string, cobra.ShellCompDirective)

CompleteMethod provides autocomplete suggestions for methods.

func (*ProtoComp) CompletePackage

func (c *ProtoComp) CompletePackage(
	_ *cobra.Command,
	args []string,
	toComplete string,
) ([]string, cobra.ShellCompDirective)

CompletePackage provides autocomplete suggestions for package names.

func (*ProtoComp) CompleteService

func (c *ProtoComp) CompleteService(
	_ *cobra.Command,
	args []string,
	toComplete string,
) ([]string, cobra.ShellCompDirective)

CompleteService provides autocomplete suggestions for service names.

type ProtoFileFlag

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

ProtoFileFlag represents a proto-file flag autocompletion functionality.

func NewProtoFileFlag

func NewProtoFileFlag(cfgFunc func() (config.Config, error)) *ProtoFileFlag

NewProtoFileFlag returns a new instance of ProtoFileFlag.

func (*ProtoFileFlag) Complete

func (f *ProtoFileFlag) Complete(_ *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective)

Complete provides autocomplete suggestions for proto files location. If import-path flag or configuration is provided, autocomplete will filter results by these directories.

Jump to

Keyboard shortcuts

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