pwd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

Types

type Config

type Config struct {
	XML    bool
	JSON   bool
	Plain  bool
	Pretty bool
}

type PwdError

type PwdError struct {
	XMLName xml.Name `xml:"error"`
	Code    int      `xml:"code,attr"`
	Msg     string   `xml:"msg,attr"`
}

type PwdResult

type PwdResult struct {
	XMLName        xml.Name   `xml:"pwd"`
	Path           string     `xml:"path,attr"`
	Absolute       string     `xml:"absolute,attr"`
	Home           string     `xml:"home,attr"`
	RelativeToHome string     `xml:"relative_to_home,attr"`
	Timestamp      int64      `xml:"timestamp,attr"`
	Errors         []PwdError `xml:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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