lightbulb

package
v0.0.0-...-6283ffe Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile(fileName string) (string, error)

LoadFromFile loads a markdown file into a string

func LoadFromURL

func LoadFromURL(url string) (string, error)

LoadFromURL loads a markdown file from a URL into a string

func Run

func Run(blocks []Block) error

Run runs all blocks

func RunSingle

func RunSingle(block Block) error

RunSingle runs a block

Types

type Block

type Block struct {
	Action      string
	Name        string
	Tags        []string
	Path        string
	Mode        string
	Code        string
	Shell       string
	Set         string
	ExitOnError bool
	Keys        []string
	Prompt      string
	Secret      bool
	Persist     bool
	Sensitive   bool
}

func Parse

func Parse(content string) ([]Block, error)

Parse parses a markdown string into a slice of Blocks

Jump to

Keyboard shortcuts

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