mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
27 lines
718 B
Go
27 lines
718 B
Go
package ledger
|
|
|
|
import (
|
|
"github.com/formancehq/fctl/cmd/ledger/accounts"
|
|
"github.com/formancehq/fctl/cmd/ledger/internal"
|
|
"github.com/formancehq/fctl/cmd/ledger/transactions"
|
|
fctl "github.com/formancehq/fctl/pkg"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewCommand() *cobra.Command {
|
|
return fctl.NewStackCommand("ledger",
|
|
fctl.WithAliases("l"),
|
|
fctl.WithPersistentStringFlag(internal.LedgerFlag, "default", "Specific ledger"),
|
|
fctl.WithShortDescription("Ledger management"),
|
|
fctl.WithChildCommands(
|
|
NewCreateCommand(),
|
|
NewSendCommand(),
|
|
NewStatsCommand(),
|
|
NewServerInfoCommand(),
|
|
NewListCommand(),
|
|
transactions.NewLedgerTransactionsCommand(),
|
|
accounts.NewLedgerAccountsCommand(),
|
|
),
|
|
)
|
|
}
|