github.com/Jeffail/benthos/v3@v3.65.0/internal/cli/template/cli.go (about)

     1  package template
     2  
     3  import (
     4  	"github.com/urfave/cli/v2"
     5  )
     6  
     7  // CliCommand is a cli.Command definition for interacting with templates.
     8  func CliCommand() *cli.Command {
     9  	return &cli.Command{
    10  		Name:  "template",
    11  		Usage: "Interact and generate Benthos templates",
    12  		Description: `
    13  EXPERIMENTAL: This subcommand, and templates in general, are experimental and
    14  therefore are subject to change outside of major version releases.
    15  
    16  Allows linting and generating Benthos templates.
    17  
    18    benthos template lint ./path/to/templates/...
    19  
    20  For more information check out the docs at:
    21  https://benthos.dev/docs/configuration/templating`[1:],
    22  		Subcommands: []*cli.Command{
    23  			lintCliCommand(),
    24  		},
    25  	}
    26  }