Documentation ¶
Index ¶
- func ErrUnknownTemplate(name string) error
- func ExtractUnknownArgs(flags *pflag.FlagSet, args []string) []string
- func NewCmd() *cobra.Command
- func NewCmdWithOptions(options *ExecOptions) *cobra.Command
- func PrepareJob(cmd *cobra.Command, cmdArgs []string, unknownArgs []string, ...) (*models.Job, error)
- type ExecOptions
- type TemplateMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrUnknownTemplate ¶
func ExtractUnknownArgs ¶
ExtractUnknownArgs extracts any long-form flags (--something) that are not currently configured for this command, they must be flags intended for the custom job type.
func NewCmdWithOptions ¶
func NewCmdWithOptions(options *ExecOptions) *cobra.Command
func PrepareJob ¶
Types ¶
type ExecOptions ¶
type ExecOptions struct { JobSettings *cliflags.JobSettings TaskSettings *cliflags.TaskSettings RunTimeSettings *cliflags.RunTimeSettings Code string }
func NewExecOptions ¶
func NewExecOptions() *ExecOptions
type TemplateMap ¶
type TemplateMap struct {
// contains filtered or unexported fields
}
func NewTemplateMap ¶
func NewTemplateMap(fsys fs.ReadDirFS, tplPath string) (*TemplateMap, error)
func (*TemplateMap) AllTemplates ¶
func (t *TemplateMap) AllTemplates() []string
Click to show internal directories.
Click to hide internal directories.