mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
31 lines
794 B
Go
31 lines
794 B
Go
package wallets
|
|
|
|
import (
|
|
"github.com/formancehq/fctl/cmd/wallets/balances"
|
|
"github.com/formancehq/fctl/cmd/wallets/holds"
|
|
"github.com/formancehq/fctl/cmd/wallets/transactions"
|
|
fctl "github.com/formancehq/fctl/pkg"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewCommand() *cobra.Command {
|
|
return fctl.NewStackCommand("wallets",
|
|
fctl.WithAliases("wal", "wa", "wallet"),
|
|
fctl.WithShortDescription("Wallets management"),
|
|
fctl.WithChildCommands(
|
|
NewCreateCommand(),
|
|
NewUpdateCommand(),
|
|
NewListCommand(),
|
|
NewShowCommand(),
|
|
NewCreditWalletCommand(),
|
|
NewDebitWalletCommand(),
|
|
transactions.NewCommand(),
|
|
holds.NewCommand(),
|
|
balances.NewCommand(),
|
|
),
|
|
fctl.WithPersistentPreRunE(func(cmd *cobra.Command, args []string) error {
|
|
return fctl.NewStackStore(cmd)
|
|
}),
|
|
)
|
|
}
|