root

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package root provides the root command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVersionNewerSemver

func IsVersionNewerSemver(givenVerStr, currentVerStr string) (bool, error)

func NewCmdRoot

func NewCmdRoot(f *cmdutil.Factory, version, commit, date string) (*cobra.Command, error)

NewCmdRoot creates the root command

func TrimPrefixV

func TrimPrefixV(s string) string

Types

type ReleaseInfo

type ReleaseInfo struct {
	TagName string `json:"tag_name"`
	Name    string `json:"name"`
	Body    string `json:"body"`
	URL     string `json:"html_url"`
}

func GetLatestRelease

func GetLatestRelease(repo string) (*ReleaseInfo, error)

GetLatestRelease Get latest release info from GitHub

Jump to

Keyboard shortcuts

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