command

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunCompileCommandInitMsg      = `Gonyx > Compiling the protobuf file ...`
	RunCompileCommandFileName     = `Gonyx > "%s.proto" file is going to be compiled ...`
	RunCompileCommandError        = `Gonyx > Compiling encountered the error: %s`
	RunCompileCommandFileNotExist = `Gonyx > %s.proto file does not exist in "%s"`
)
View Source
const (
	// Generate command constants
	GenerateSwaggerStartMessage        = `Gonyx > Generating Swagger/OpenAPI documentation ...`
	GenerateSwaggerCompleteMessage     = `Gonyx > Swagger documentation generated successfully in "%s" ...`
	GenerateSwaggerErrorMessage        = `Gonyx > Error generating Swagger documentation ... %v`
	GenerateSwaggerOutputDirMessage    = `Gonyx > Output directory: %s`
	GenerateSwaggerCheckingMessage     = `Gonyx > Checking swag installation...`
	GenerateSwaggerNotFoundMessage     = `Gonyx > Swag not found, installing...`
	GenerateSwaggerInstallSuccessMsg   = `Gonyx > Swag installed successfully`
	GenerateSwaggerAlreadyInstalledMsg = `Gonyx > Swag is already installed`
	GenerateSwaggerInitRunningMsg      = `Gonyx > Running 'swag init'...`
	GenerateSwaggerInitCompleteMsg     = `Gonyx > 'swag init' completed successfully`
	GenerateSwaggerFmtRunningMsg       = `Gonyx > Running 'swag fmt'...`
	GenerateSwaggerFmtCompleteMsg      = `Gonyx > 'swag fmt' completed successfully`

	// Error messages
	GenerateSwaggerInstallFailMsg      = `Gonyx > Failed to install swag: %v`
	GenerateSwaggerInitFailMsg         = `Gonyx > Failed to run 'swag init': %v`
	GenerateSwaggerFmtFailMsg          = `Gonyx > Failed to run 'swag fmt': %v`
	GenerateSwaggerInstallStartFailMsg = `Gonyx > Failed to start install command: %v`
	GenerateSwaggerInstallCmdFailMsg   = `Gonyx > Install command failed: %v, stderr: %s`
	GenerateSwaggerInitStartFailMsg    = `Gonyx > Failed to start 'swag init': %v`
	GenerateSwaggerInitCmdFailMsg      = `Gonyx > 'swag init' failed: %v, stderr: %s`
	GenerateSwaggerFmtStartFailMsg     = `Gonyx > Failed to start 'swag fmt': %v`
	GenerateSwaggerFmtCmdFailMsg       = `Gonyx > 'swag fmt' failed: %v, stderr: %s`
)
View Source
const (
	RunServerInitMsg     = `Gonyx > Running Server ...`
	RunServerShutdownMsg = `Gonyx > Shutting Down Server ...`
)

Variables

This section is empty.

Functions

func NewCompileCommandCmd

func NewCompileCommandCmd() *cobra.Command

func NewGenerateCmd added in v0.3.15

func NewGenerateCmd() *cobra.Command

NewGenerateCmd creates the main generate command

func NewGenerateSwaggerCmd added in v0.3.15

func NewGenerateSwaggerCmd() *cobra.Command

NewGenerateSwaggerCmd creates the swagger subcommand

func NewRunServerCmd

func NewRunServerCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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