Documentation ¶
Index ¶
- type ProtoComp
- func (c *ProtoComp) CompleteMethod(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func (c *ProtoComp) CompletePackage(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func (c *ProtoComp) CompleteService(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- type ProtoFileFlag
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.