cmd

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagForce  = "force"
	FlagN      = "n"
	FlagVm     = "vm"
	FlagDetach = "detach"

	FlagInitiaHome  = "initia-dir"
	FlagMinitiaHome = "minitia-dir"
	FlagOPInitHome  = "opinit-dir"

	FlagPollingInterval = "polling-interval"

	FlagWithConfig      = "with-config"
	FlagKeyFile         = "key-file"
	FlagGenerateKeyFile = "generate-key-file"
)
View Source
const (
	WeaveReleaseAPI string = "https://api.github.com/repos/initia-labs/weave/releases"
	WeaveReleaseURL string = "https://www.github.com/initia-labs/weave/releases"
)
View Source
const (
	DefaultTimeout = 3 * time.Second
)
View Source
const (
	DocsURLPrefix = "https://docs.initia.xyz/developers/developer-guides/tools/clis/weave-cli/"
)

Variables

View Source
var (
	WeaveHelperText        = fmt.Sprintf("Weave is the CLI for managing Initia deployments.\n\n%s", IntroductionHelperText)
	IntroductionHelperText = SubHelperText("introduction")
	L1NodeHelperText       = SubHelperText("initia-node")
	RollupHelperText       = SubHelperText("rollup/launch")
	OPinitBotsHelperText   = SubHelperText("rollup/opinit-bots")
	RelayerHelperText      = SubHelperText("rollup/relayer")
	GasStationHelperText   = SubHelperText("gas-station")
)
View Source
var Version string

Functions

func AnalyticsCommand

func AnalyticsCommand() *cobra.Command

func AnalyticsDisableCommand

func AnalyticsDisableCommand() *cobra.Command

func AnalyticsEnableCommand

func AnalyticsEnableCommand() *cobra.Command

func Execute

func Execute() error

func GasStationCommand

func GasStationCommand() *cobra.Command

func InitCommand

func InitCommand() *cobra.Command

func InitiaCommand

func InitiaCommand() *cobra.Command

func MinitiaCommand

func MinitiaCommand() *cobra.Command

func OPInitBotsCommand

func OPInitBotsCommand() *cobra.Command

func OPInitBotsInitCommand

func OPInitBotsInitCommand() *cobra.Command

func OPInitBotsKeysSetupCommand

func OPInitBotsKeysSetupCommand() *cobra.Command

func OPInitBotsLogCommand

func OPInitBotsLogCommand() *cobra.Command

func OPInitBotsResetCommand

func OPInitBotsResetCommand() *cobra.Command

func OPInitBotsRestartCommand

func OPInitBotsRestartCommand() *cobra.Command

func OPInitBotsStartCommand

func OPInitBotsStartCommand() *cobra.Command

func OPInitBotsStopCommand

func OPInitBotsStopCommand() *cobra.Command

func RelayerCommand

func RelayerCommand() *cobra.Command

func RunOPInit

func RunOPInit(nextModelFunc func(ctx context.Context) (tea.Model, error), homeConfig HomeConfig) (tea.Model, error)

func SubHelperText added in v0.0.5

func SubHelperText(docPath string) string

func UpgradeCommand

func UpgradeCommand() *cobra.Command

func ValidateOPinitBotNameArgs

func ValidateOPinitBotNameArgs(_ *cobra.Command, args []string) error

func ValidateOPinitOptionalBotNameArgs

func ValidateOPinitOptionalBotNameArgs(_ *cobra.Command, args []string) error

func VersionCommand

func VersionCommand() *cobra.Command

Types

type Asset added in v0.0.4

type Asset struct {
	DenomUnits []DenomUnit `json:"denom_units"`
	Base       string      `json:"base"`
	Display    string      `json:"display"`
}

type AssetList added in v0.0.4

type AssetList struct {
	Assets []Asset `json:"assets"`
}

type DenomUnit added in v0.0.4

type DenomUnit struct {
	Denom    string `json:"denom"`
	Exponent int    `json:"exponent"`
}

type HomeConfig

type HomeConfig struct {
	MinitiaHome string
	OPInitHome  string
	UserHome    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL