cmd

package
v0.0.0-...-60ddd29 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cmd provides the command-line interface for the application, including the root command and its associated subcommands.

Package cmd provides the command-line interface for the application, including the root command and its associated subcommands.

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.

func GenerateCommand

func GenerateCommand() *cobra.Command

GenerateCommand represents the generate command

func RootCommand

func RootCommand() *cobra.Command

RootCommand represents the base command when called without any subcommands

func VersionCommand

func VersionCommand() *cobra.Command

VersionCommand represents the version command

Types

type BuildInfo

type BuildInfo struct {
	Version    string
	Commit     string
	CommitTime string
	GoVersion  string
	Goos       string
	Goarch     string
	Modified   bool
}

BuildInfo holds information about the build, including the version, commit hash, and the time when the build was created.

func CreateBuildInfo

func CreateBuildInfo() BuildInfo

CreateBuildInfo retrieves build information, such as Version, CommitHash, goVersion, Goos, Goarch

func (BuildInfo) String

func (i BuildInfo) String() string

type Entity

type Entity struct {
	Name string
	X    float64
	Y    float64
}

Entity represents an entity with a name and coordinates

Jump to

Keyboard shortcuts

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