cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(prompt string) bool

func PrintError

func PrintError(msg string, jsonMode bool)

func PrintResult

func PrintResult(r Result, jsonMode bool)

Types

type Result

type Result struct {
	Action   string `json:"action"`
	Hostname string `json:"hostname"`
	IP       string `json:"ip,omitempty"`
	Status   string `json:"status"`
	Message  string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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