mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
29 lines
785 B
Go
29 lines
785 B
Go
// Copyright (C) 2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
package messengercmd
|
|
|
|
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 messenger
|
|
func NewCmd(injectedApp *application.Lux) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "messenger",
|
|
Short: "Interact with Warp messenger contracts",
|
|
Long: `The messenger command suite provides a collection of tools for interacting
|
|
with Warp messenger contracts.`,
|
|
RunE: cobrautils.CommandSuiteUsage,
|
|
}
|
|
app = injectedApp
|
|
// interchain messenger sendMsg
|
|
cmd.AddCommand(NewSendMsgCmd())
|
|
// interchain messenger deploy
|
|
cmd.AddCommand(NewDeployCmd())
|
|
return cmd
|
|
}
|