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

cd

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 cd implements the `cd` shell built-in. Real bash semantics: change the working directory; mvdan/sh ships its own `cd` that mutates the runner's Dir. Our registration is reachable via /bin/cd and CANNOT mutate the runner's Dir (it has no back-channel), so it functions as a path-validation + diagnostic stub: it resolves the target via c.FS.Stat and emits a clean error if missing.

Documented shadow in DECISIONS.md (Phase 11).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the cd command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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