infocmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, log *slog.Logger, stdout io.Writer, args Arguments) (err error)

Types

type Arguments

type Arguments struct {
	JSON bool `flag:"json" help:"Output info as JSON."`
}

type Info

type Info struct {
	OS struct {
		GOOS   string `json:"goos"`
		GOARCH string `json:"goarch"`
	} `json:"os"`
	Go       ToolInfo `json:"go"`
	Gopls    ToolInfo `json:"gopls"`
	Templ    ToolInfo `json:"templ"`
	Prettier ToolInfo `json:"prettier"`
}

type ToolInfo

type ToolInfo struct {
	Location string     `json:"location"`
	Version  string     `json:"version"`
	Level    slog.Level `json:"level"`
	Message  string     `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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