cli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFZFCancelled = errors.New("fzf selection cancelled by user")

ErrFZFCancelled indicates that the user cancelled the fzf selection (e.g., by pressing Esc or Ctrl-C).

View Source
var ErrFZFNotFound = errors.New("fzf binary not found in PATH")

ErrFZFNotFound indicates that the fzf binary was not found in PATH.

Functions

func NewAddCommand

func NewAddCommand(
	aliasSuggestionService ports.AliasSuggestionService,
	aliasManagementService ports.AliasManagementService,
) *cobra.Command

func NewAddPredefinedCommand

func NewAddPredefinedCommand(
	suggestionSvc ports.AliasSuggestionService,
	managementSvc ports.AliasManagementService,
) *cobra.Command

NewAddPredefinedCommand creates the command for adding all predefined aliases.

func NewListCommand

func NewListCommand(aliasManagementService ports.AliasManagementService) *cobra.Command

NewListCommand creates the 'list' subcommand.

func NewRootCommand

func NewRootCommand(
	version string,
	suggestionService ports.AliasSuggestionService,
	managementService ports.AliasManagementService,
) *cobra.Command

func NewSuggestCommand

func NewSuggestCommand(aliasSuggestionService ports.AliasSuggestionService) *cobra.Command

NewSuggestCommand creates the 'show' subcommand.

Types

This section is empty.

Jump to

Keyboard shortcuts

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