Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "0.0.0"
)
Version variables set at build time (e.g., with -ldflags).
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "Show containerlab version or upgrade", RunE: func(_ *cobra.Command, _ []string) error { fmt.Println(projASCIILogo) verSlug := docsLinkFromVer(Version) fmt.Printf(" version: %s\n", Version) fmt.Printf(" commit: %s\n", commit) fmt.Printf(" date: %s\n", date) fmt.Printf(" source: %s\n", repoUrl) fmt.Printf(" rel. notes: https://containerlab.dev/rn/%s\n", verSlug) return nil }, }
VersionCmd defines the version command.
Functions ¶
func InitManager ¶ added in v0.69.1
InitManager initializes the version manager, we have an explicit init so we can capture the root context to ensure appropriate cancellation during the version fetching if necessary.
Types ¶
Click to show internal directories.
Click to hide internal directories.