Skip to main content

Module params

Module params 

Source
Expand description

Placeholder syntax for command definitions.

A placeholder is written <name> or <name:default>. Names may contain ASCII letters, digits, _ and -. A literal angle bracket is escaped with a preceding backslash.

Angle brackets were chosen over {{name}} because Go template syntax occurs constantly in the docker and kubectl commands this tool targets.

Structs§

Placeholder
One placeholder occurrence in a command string.

Functions§

names
Distinct placeholder names in cmd, in the order they first appear.
parse
Every placeholder in cmd, in the order it appears.
render
Substitutes placeholder values and resolves escaped angle brackets.