realpath

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 RunRealpath

func RunRealpath(w io.Writer, args []string, opts RealpathOptions) error

RunRealpath prints the resolved absolute path for each argument

Types

type RealpathOptions

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

RealpathOptions configures the realpath command behavior

type RealpathResult

type RealpathResult struct {
	Original string `json:"original"`
	Resolved string `json:"resolved"`
}

RealpathResult represents realpath output for JSON

Jump to

Keyboard shortcuts

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