cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func SetHardcodedServerAndPort

func SetHardcodedServerAndPort(hardcodedServer string, hardcodedPort string)

SetHardcodedServerAndPort is a workaround to get values set by the linker into the namespace of the cmd package. Unfortunately setting these values directly for the cmd package does not work since the linker is not able to assign them when initializers are used, a concept cobra heavily builds on.

Types

This section is empty.

Jump to

Keyboard shortcuts

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