mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
31 lines
785 B
Go
31 lines
785 B
Go
// Copyright (C) 2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
package relayercmd
|
|
|
|
import (
|
|
"github.com/luxfi/cli/v2/pkg/application"
|
|
"github.com/luxfi/cli/v2/pkg/cobrautils"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var app *application.Lux
|
|
|
|
// lux interchain relayer
|
|
func NewCmd(injectedApp *application.Lux) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "relayer",
|
|
Short: "Manage Warp relayers",
|
|
Long: `The relayer command suite provides a collection of tools for deploying
|
|
and configuring an Warp relayers.`,
|
|
RunE: cobrautils.CommandSuiteUsage,
|
|
}
|
|
app = injectedApp
|
|
cmd.AddCommand(newDeployCmd())
|
|
cmd.AddCommand(newLogsCmd())
|
|
cmd.AddCommand(newStartCmd())
|
|
cmd.AddCommand(newStopCmd())
|
|
// TODO: config
|
|
// TODO: fund
|
|
return cmd
|
|
}
|