billysh

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package billysh adapts a billy filesystem for use with mvdan.cc/sh's interpreter.

Index

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.

Jump to

Keyboard shortcuts

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