shell

package
v0.0.0-...-b94449b Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package shell handles parsing shell scripts in plan files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Literals

func Literals(args []*syntax.Word) []string

Types

type Parser

type Parser struct {
	*syntax.File
	// contains filtered or unexported fields
}

func Parse

func Parse(r io.Reader) (*Parser, error)

func (*Parser) Compile

func (psh *Parser) Compile(ctx context.Context) error

func (*Parser) ConvertShellOp

func (psh *Parser) ConvertShellOp() ([]byte, error)

func (*Parser) Extract

func (psh *Parser) Extract() ([]*syntax.CallExpr, error)

Jump to

Keyboard shortcuts

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