Help us shape the future of Go! Take the 2026 Go Developer Survey

alias

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package alias implements the `alias` built-in.

Usage:

alias                  list every alias as `alias NAME='VALUE'`
alias NAME             print the binding for NAME (exit 1 if unset)
alias NAME=VALUE...    set bindings; NAMEs may be repeated

Aliases live on Context.Aliases (a command.AliasTable shared across every dispatch on a single *Bash). Aliases only expand at parse time when `shopt expand_aliases` is on — the parse-side wiring lands in Phase 11; Wave G implements the read/write surface only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the alias command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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