mdtmpl

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(md []byte) []string

Commands returns the command strings, and does NOT execute them.

func Execute

func Execute(md []byte) []byte

Execute the all commands found in the given file and store the result in between the comment tags:

<!--tmpl: my-command -->
some output of my-command goes here
<!--/tmpl-->

It does not return an error. Both successful and failing commands will return their output.

func ExecuteIn

func ExecuteIn(md []byte, workingDir string) []byte

ExecuteIn performs an Execute in the specified working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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