devtoolsprompt

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveVersion

func GetActiveVersion() (string, error)

GetActiveVersion returns the active version from devtools versions.json

func ListVersions

func ListVersions() ([]string, error)

ListVersions returns all available devtools prompt versions

func LoadPrompt

func LoadPrompt(version string) (string, error)

LoadPrompt loads a devtools prompt by version string. If version is empty or "latest", uses the active version from versions.json.

func SetEmbeddedFS

func SetEmbeddedFS(efs fs.FS)

SetEmbeddedFS sets the embedded filesystem for devtools prompts. This should be called from main() with the same embedded FS used for syntax prompts.

Types

type VersionMetadata

type VersionMetadata struct {
	File        string   `json:"file"`
	Hash        string   `json:"hash"`
	Description string   `json:"description"`
	Created     string   `json:"created"`
	Tags        []string `json:"tags"`
	Notes       string   `json:"notes"`
}

VersionMetadata represents metadata for a devtools prompt version

func GetVersionMetadata

func GetVersionMetadata(version string) (*VersionMetadata, error)

GetVersionMetadata returns metadata for a specific devtools prompt version

type VersionsManifest

type VersionsManifest struct {
	SchemaVersion string                     `json:"schema_version"`
	Versions      map[string]VersionMetadata `json:"versions"`
	Active        string                     `json:"active"`
	Notes         []string                   `json:"notes"`
}

VersionsManifest represents the devtools versions.json file structure

Jump to

Keyboard shortcuts

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