aliases

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAliases

func GenerateAliases(flags []string, aliases []options.Alias, dir string) (map[string][]string, error)

GenerateAliases returns a map of flag keys to aliases based on config.

func GenerateAliasesFromCommand added in v2.11.5

func GenerateAliasesFromCommand(a options.Alias, flag, dir string) ([]string, error)

func GenerateAliasesFromFilePattern added in v2.11.5

func GenerateAliasesFromFilePattern(a options.Alias, flag, dir string, allFileContents FileContentsMap) ([]string, error)

func GenerateNamingConventionAlias added in v2.11.5

func GenerateNamingConventionAlias(a options.Alias, flag string) (alias string, err error)

Types

type FileContentsMap added in v2.11.5

type FileContentsMap = map[string][]byte

Map of full file path to file contents

Jump to

Keyboard shortcuts

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