cmd

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 9 Imported by: 0

README

OpenMorph CLI

This is the CLI entrypoint for the OpenMorph tool. All subcommands and flags are registered here using spf13/cobra.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecCommand = exec.Command

ExecCommand is a wrapper for exec.Command (for testability)

Functions

func Execute

func Execute()

Execute runs the root command.

func GetVersion added in v0.4.0

func GetVersion() string

GetVersion returns the current version, preferring build-time version, then falling back to .version file, then "dev"

func RunShellSilent added in v0.4.0

func RunShellSilent(cmd string) int

RunShellSilent runs a shell command silently and returns the exit code

func RunSwaggerValidate added in v0.4.0

func RunSwaggerValidate(inputDir string) error

RunSwaggerValidate shells out to swagger-cli validate for all YAML/JSON files in the input dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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