Files
stack/components/fctl/cmd/webhooks/root.go
2024-03-15 15:16:03 +00:00

25 lines
557 B
Go

package webhooks
import (
fctl "github.com/formancehq/fctl/pkg"
"github.com/spf13/cobra"
)
func NewCommand() *cobra.Command {
return fctl.NewStackCommand("webhooks",
fctl.WithAliases("web", "wh"),
fctl.WithShortDescription("Webhooks management"),
fctl.WithChildCommands(
NewCreateCommand(),
NewListCommand(),
NewDeactivateCommand(),
NewActivateCommand(),
NewDeleteCommand(),
NewChangeSecretCommand(),
),
fctl.WithPersistentPreRunE(func(cmd *cobra.Command, args []string) error {
return fctl.NewStackStore(cmd)
}),
)
}