internal

package
v0.0.0-...-171e6b0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetLatestEthereumClientVersionCmd = &cobra.Command{
	Use:   "get-latest-ethereum-client-version",
	Short: "Get the latest Ethereum client release version from Github",
	RunE: func(cmd *cobra.Command, args []string) error {
		if len(args) != 1 {
			return fmt.Errorf("please provide the repository in the format 'org/repo:tag'")
		}

		repo := args[0]

		latest, err := test_env.FetchLatestEthereumClientDockerImageVersionIfNeed(repo)
		if err != nil {
			return fmt.Errorf("error fetching release information: %v", err)
		}

		fmt.Println(strings.Split(latest, ":")[1])
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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