Documentation ¶
Index ¶
- type Command
- func (c *Command) Execute(cmd *cobra.Command, args []string)
- func (c *Command) New() *cobra.Command
- func (c *Command) SetGitCommit(gitCommit string)
- func (c *Command) SetGoArch(goArch string)
- func (c *Command) SetGoOS(goOS string)
- func (c *Command) SetGoVersion(goVersion string)
- func (c *Command) SetProjectVersion(projectVersion string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command represents the version command.
func (*Command) SetGitCommit ¶
SetGitCommit sets the git commit for the version command to be displayed.
func (*Command) SetGoArch ¶
SetGoArch sets the go architecture for the version command to be displayed.
func (*Command) SetGoVersion ¶
SetGoVersion sets the go version for the version command to be displayed.
func (*Command) SetProjectVersion ¶
SetProjectVersion sets the project version for the version command to be displayed.
Click to show internal directories.
Click to hide internal directories.