builtins

package
v0.0.0-...-cce4e6a Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgCount = errors.New("invalid argument count")
	HomeDir, _         = os.UserHomeDir()
)

Functions

func ChangeDirectory

func ChangeDirectory(args ...string) error

func Echo

func Echo(out io.Writer, args ...string) error

Implementation of Echo command

func EnvironmentVariables

func EnvironmentVariables(w io.Writer, args ...string) error

func ListDirectory

func ListDirectory(w io.Writer, args ...string) error

func MakeDirectory

func MakeDirectory(w io.Writer, args ...string) error

func PrintWorkingDirectory

func PrintWorkingDirectory(w io.Writer) error

func RemoveFileAndOrDirectory

func RemoveFileAndOrDirectory(args ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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