parser

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package parser is a parser for Efs2files. With this parser, you can read an Efs2file and convert the instructions within it into tasks. This parser is also able to read from standard in.

tasks, err := Parser("/path/to/Efs2file")
if err != nil {
  // do stuff
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(f string) ([]ssh.Task, error)

Parse will read the file provided and parse it for Efs2 instructions. If a line within the file does not match the Efs2 pre-defined patterns, the whole file parsing will return an error. If "-" is provided as the filename, the Parser will read input from Standard In.

func TmpFn

func TmpFn() string

TmpFn will generate a temporary filename. This function is useful for testing and called internally during parsing to name remote files.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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