aliases

package
v0.0.0-...-6d944a2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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

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

func GenerateAliasesFromFilePattern

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

func GenerateNamingConventionAlias

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

Types

type FileContentsMap

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