Compare commits

..

1 commit

Author SHA1 Message Date
1cf7fcb852
feat(cmd): add sequence flag to execute multiple functions
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
2024-12-07 01:26:32 +01:00

View file

@ -29,6 +29,7 @@ func NewRootCommand(c *config.Config) *cobra.Command {
}
for _, command := range c.Sequence {
log.Info().Str("function", command).Msg("Executing function")
cmd.SetArgs([]string{command})
if err := cmd.Execute(); err != nil {
return err