Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AppCommand = &cli.Command{ Name: "app", Usage: "Manage projects", Subcommands: []*cli.Command{ app.CreateCommand, app.DeployCommand, app.UpgradeCommand, app.StartCommand, app.StopCommand, app.TerminateCommand, app.ListCommand, app.InfoCommand, app.LogsCommand, app.NameCommand, app.ConfigureTLSCommand, }, }
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, }, }
var EnvironmentCommand = &cli.Command{ Name: "environment", Aliases: []string{"env"}, Usage: "Manage deployment environment", Subcommands: []*cli.Command{ environment.SetCommand, environment.ListCommand, environment.ShowCommand, }, }
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
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
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 GetLatestVersionFromS3 ¶
GetLatestVersionFromS3 fetches the latest version from the S3 bucket If version is "latest", it fetches from the VERSION file Otherwise, it returns the specified version (for explicit version upgrades)
func PerformUpgrade ¶
PerformUpgrade downloads and installs the target version of the eigenx binary. It supports both .tar.gz and raw .tar archive formats.
func UpgradeEigenX ¶
UpgradeEigenX resolves the latest version if needed and invokes PerformUpgrade to install the new version
Types ¶
This section is empty.