commands

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthCommand = &cli.Command{
	Name:  "auth",
	Usage: "Manage authentication with private keys stored in OS keyring",
	Subcommands: []*cli.Command{
		auth.GenerateCommand,
		auth.LoginCommand,
		auth.LogoutCommand,
		auth.WhoamiCommand,
		auth.ListCommand,
	},
}
View Source
var EnvironmentCommand = &cli.Command{
	Name:    "environment",
	Aliases: []string{"env"},
	Usage:   "Manage deployment environment",
	Subcommands: []*cli.Command{
		environment.SetCommand,
		environment.ListCommand,
		environment.ShowCommand,
	},
}
View Source
var TelemetryCommand = &cli.Command{
	Name:  "telemetry",
	Usage: "Manage telemetry settings",
	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name:  "enable",
			Usage: "Enable telemetry collection",
		},
		&cli.BoolFlag{
			Name:  "disable",
			Usage: "Disable telemetry collection",
		},
		&cli.BoolFlag{
			Name:  "status",
			Usage: "Show current telemetry status",
		},
	},
	Action: func(cCtx *cli.Context) error {
		logger := common.LoggerFromContext(cCtx)

		enable := cCtx.Bool("enable")
		disable := cCtx.Bool("disable")
		status := cCtx.Bool("status")

		if (enable && disable) || (!enable && !disable && !status) {
			return fmt.Errorf("specify exactly one of --enable, --disable, or --status")
		}

		if status {
			return showTelemetryStatus(logger)
		}

		if enable {
			return enableTelemetry(logger)
		}

		if disable {
			return disableTelemetry(logger)
		}

		return nil
	},
}

TelemetryCommand allows users to manage telemetry settings

View Source
var UndelegateCommand = &cli.Command{
	Name:   "undelegate",
	Usage:  "Undelegate your account from the EIP7702 delegator",
	Flags:  common.GlobalFlags,
	Action: undelegateAction,
}

UndelegateCommand defines the CLI command to undelegate an account from the EIP7702 delegator

View Source
var UpgradeCommand = &cli.Command{
	Name:  "upgrade",
	Usage: "Upgrade eigenx binary",
	Flags: append([]cli.Flag{
		&cli.StringFlag{
			Name:  "version",
			Usage: "Version to upgrade to (e.g. v0.0.8)",
			Value: "latest",
		},
	}, common.GlobalFlags...),
	Action: func(cCtx *cli.Context) error {
		return UpgradeEigenX(cCtx)
	},
}

UpgradeCommand defines the CLI command to upgrade the eigenx binary

Functions

func PerformUpgrade

func PerformUpgrade(version, binDir string, logger iface.Logger) error

PerformUpgrade downloads and installs the target version of the eigenx binary. It supports both .tar.gz and raw .tar archive formats.

func UpgradeEigenX

func UpgradeEigenX(cCtx *cli.Context) error

UpgradeEigenX resolves the latest version if needed and invokes PerformUpgrade to install the new version

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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