cmd

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Overview

Package cmd implements the OpenPass CLI commands using Cobra.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via -ldflags. Defaults to "dev".

Functions

func Execute

func Execute()

func PrintJSON

func PrintJSON(v interface{})

PrintJSON outputs the given value as JSON to stdout. JSON encoding errors are written to stderr.

func SetVersionInfo

func SetVersionInfo(version, commit, date string)

SetVersionInfo is called from main to inject build-time values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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