Documentation ¶
Index ¶
- func Data(ctx context.Context, blocks *parser.DefinedBlocks, caller *parser.Caller, ...) (result plugin.Data, diags diagnostics.Diag)
- func Execute()
- func Render(ctx context.Context, blocks *parser.DefinedBlocks, pluginCaller *parser.Caller, ...) (results []string, diags diagnostics.Diag)
- func UsageTemplate(argsDesc ...[2]string) string
- type Evaluator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func Render ¶
func Render(ctx context.Context, blocks *parser.DefinedBlocks, pluginCaller *parser.Caller, docName string) (results []string, diags diagnostics.Diag)
func UsageTemplate ¶
Default usage template with added section for Args description
Types ¶
type Evaluator ¶
type Evaluator struct { PluginsDir string Blocks *parser.DefinedBlocks Runner *runner.Runner FileMap map[string]*hcl.File }
func NewEvaluator ¶
func (*Evaluator) LoadRunner ¶
func (e *Evaluator) LoadRunner() diagnostics.Diag
func (*Evaluator) ParseFabricFiles ¶
func (e *Evaluator) ParseFabricFiles(sourceDir fs.FS) (diags diagnostics.Diag)
func (*Evaluator) PluginCaller ¶
Click to show internal directories.
Click to hide internal directories.