parser

package
v0.0.0-...-cac235d Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package parser parses aliases either found in $HOME or in files defined in $ALIASFILES as a map of Section instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAll

func ParseAll() map[string]Section

ParseAll parses a map of Sections found in all possible files. Either '*_aliases' files found in $HOME or files specified in $ALIASFILES.

Types

type Alias

type Alias struct {
	Name string
	Cmd  string
	Desc string
}

type Section

type Section struct {
	Label   string
	Aliases map[string]Alias
}

Jump to

Keyboard shortcuts

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