dirname

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDirname

func RunDirname(w io.Writer, args []string, opts DirnameOptions) error

RunDirname prints the directory portion of each path

Types

type DirnameOptions

type DirnameOptions struct {
	JSON bool // --json: output as JSON
}

DirnameOptions configures the dirname command behavior

type DirnameResult

type DirnameResult struct {
	Original string `json:"original"`
	Dirname  string `json:"dirname"`
}

DirnameResult represents dirname output for JSON

Jump to

Keyboard shortcuts

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