Help us shape the future of Go! Take the 2026 Go Developer Survey

forgecmd

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package forgecmd implements the `forge` subcommand family (add / generate / list / diff / targets) independently of any particular front-end. It writes all human-readable output to an io.Writer so the same logic backs both the `rysh forge` shell CLI and the in-session `##forge` command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(workDir string, args []string, w io.Writer) error

Run executes a forge subcommand in workDir, writing output to w:

add <name> <spec-file> [flags]   ingest a spec + generate artifacts
add <name> --graphql-url URL     introspect a running GraphQL endpoint
add <name> --grpc-target H:P     discover a running gRPC server (reflection)
generate <name> [flags]          re-generate from the stored spec
list                             list configured integrations
diff <name> <new-spec-file>      operation-level changes vs the stored spec
targets                          list available generator targets

Spec-file paths are resolved relative to workDir when not absolute, so the daemon (`##forge`) and the CLI (`rysh forge`) behave identically.

func Usage

func Usage(w io.Writer)

Usage writes the forge command help to w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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