infocmd

package
v0.2.793 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 12 Imported by: 1

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"`
}

type ToolInfo

type ToolInfo struct {
	Location string `json:"location"`
	Version  string `json:"version"`
	OK       bool   `json:"ok"`
	Message  string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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