mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
30 lines
931 B
Go
30 lines
931 B
Go
package payments
|
|
|
|
import (
|
|
"github.com/formancehq/fctl/cmd/payments/accounts"
|
|
"github.com/formancehq/fctl/cmd/payments/bankaccounts"
|
|
"github.com/formancehq/fctl/cmd/payments/connectors"
|
|
"github.com/formancehq/fctl/cmd/payments/payments"
|
|
"github.com/formancehq/fctl/cmd/payments/pools"
|
|
"github.com/formancehq/fctl/cmd/payments/transferinitiation"
|
|
fctl "github.com/formancehq/fctl/pkg"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewCommand() *cobra.Command {
|
|
return fctl.NewStackCommand("payments",
|
|
fctl.WithShortDescription("Payments management"),
|
|
fctl.WithChildCommands(
|
|
connectors.NewConnectorsCommand(),
|
|
payments.NewPaymentsCommand(),
|
|
transferinitiation.NewTransferInitiationCommand(),
|
|
bankaccounts.NewBankAccountsCommand(),
|
|
accounts.NewAccountsCommand(),
|
|
pools.NewPoolsCommand(),
|
|
),
|
|
fctl.WithPersistentPreRunE(func(cmd *cobra.Command, args []string) error {
|
|
return fctl.NewStackStore(cmd)
|
|
}),
|
|
)
|
|
}
|