mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
25 lines
557 B
Go
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)
|
|
}),
|
|
)
|
|
}
|