daggershell

package
v3.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Script

type Script struct {
	// contains filtered or unexported fields
}

func NewScript

func NewScript() *Script

func (*Script) DefineFunc

func (s *Script) DefineFunc(name, body string) error

func (*Script) Render

func (s *Script) Render(w io.Writer, shebang string) error

Render renders the script with a required shebang (e.g. "/bin/bash").

func (*Script) RenderWithTarget

func (s *Script) RenderWithTarget(w io.Writer, shebang, target string) error

RenderWithTarget renders the script, calling the specified function and adding a required shebang.

Jump to

Keyboard shortcuts

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