Documentation
¶
Overview ¶
Package billysh adapts a billy filesystem for use with mvdan.cc/sh's interpreter.
Index ¶
- func CallHandler(reg *registry.Impl, fsys billy.Filesystem, stdout, stderr io.Writer) interp.CallHandlerFunc
- func FsysOpenHandler(reg *registry.Impl, fsys billy.Filesystem) interp.OpenHandlerFunc
- func FsysReadDirHandler(reg *registry.Impl, fsys billy.Filesystem) interp.ReadDirHandlerFunc2
- func FsysStatHandler(reg *registry.Impl, fsys billy.Filesystem) interp.StatHandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallHandler ¶
func CallHandler(reg *registry.Impl, fsys billy.Filesystem, stdout, stderr io.Writer) interp.CallHandlerFunc
CallHandler intercepts cd and pwd before interp's builtins handle them, so we can route directory state through the registry's fsys-relative pwd instead of interp's host-rooted Dir. Intercepted calls are replaced with `:` (no-op) so interp's builtin doesn't run.
func FsysOpenHandler ¶
func FsysOpenHandler(reg *registry.Impl, fsys billy.Filesystem) interp.OpenHandlerFunc
FsysOpenHandler opens files for reading and rejects write requests.
func FsysReadDirHandler ¶
func FsysReadDirHandler(reg *registry.Impl, fsys billy.Filesystem) interp.ReadDirHandlerFunc2
FsysReadDirHandler resolves directory reads against the registry's filesystem.
func FsysStatHandler ¶
func FsysStatHandler(reg *registry.Impl, fsys billy.Filesystem) interp.StatHandlerFunc
FsysStatHandler resolves stat requests against the registry's filesystem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.