Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Preview bool `help:"Enables preview mode. Displays all commands encountered."` Write bool `help:"Write file instead of printing to standard out"` WorkingDir string `opts:"short=d,help=Specify the working directory for all commands (defaults to each file's dirname)"` SkipPadCode bool `help:"Does not include a space between the triple slash and the code word"` ExistOnErr bool `help:"Exist on first error without writing contents to the file or stdout"` }
func (*Config) Execute ¶
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.
Click to show internal directories.
Click to hide internal directories.