Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "pipeline", Usage: "Process a .yml file and dynamic generate multimedia assets", Action: func(ctx *cli.Context) error { source := ctx.Args().First() if source == "" { return ErrorMissingSourceArgument } if !path.IsAbs(source) { pwd, _ := os.Getwd() source = path.Join(pwd, source) } content, err := os.ReadFile(source) if err != nil { return err } collection, err := pipeline.Parse(content) if err != nil { return err } cfg := config.Ctx(ctx.Context) _, err = collection.Run(ctx.Context, *cfg) return err }, }
View Source
var ErrorMissingSourceArgument = errors.Business("Missing 'source' param", "DP:001")
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.