builtins

package
v0.0.0-...-7933028 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: GPL-3.0 Imports: 6 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(w io.Writer, args ...string) error

Echo prints the specified text to the console.

func EnvironmentVariables

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

func ListDirectory

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

ListDirectory lists the files and directories in the specified directory.

func MakeDirectory

func MakeDirectory(args ...string) error

MakeDirectory creates a new directory with the specified name.

func PrintWorkingDirectory

func PrintWorkingDirectory(w io.Writer) error

PrintWorkingDirectory prints the current working directory.

func WhoAmI

func WhoAmI(w io.Writer) error

WhoAmI prints the current username.

Types

This section is empty.

Jump to

Keyboard shortcuts

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