solutions: the guide is its own program, not part of yet
Default program name in messages is yetano-solutions; comments no longer describe mounting the commands into yet (owner decision 2026-12-01, docs/knowledge-solutions ADR-0006 in the meta-repo). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2481a0dd27
commit
4fb9bf9a5a
3 files changed
+11
-15
No files matched your search
+5
-10
@@ -1,12 +1,7 @@
|
||||
// Package cli implements the guide's commands -- solution, task,
|
||||
// knowledge and open -- with yet's conventions (stdlib flag, --json on
|
||||
// every command, data on stdout, messages on stderr, stable exit codes),
|
||||
// so yet mounts them with one case in its dispatcher:
|
||||
//
|
||||
// case "solution", "task", "knowledge", "open":
|
||||
// return cli.Run(ctx, args, env)
|
||||
//
|
||||
// The same package backs the standalone yetano-solutions binary.
|
||||
// every command, data on stdout, messages on stderr, stable exit codes).
|
||||
// The guide's own program calls Run from main; yet does not embed it.
|
||||
package cli
|
||||
|
||||
import (
|
||||
@@ -45,7 +40,7 @@ type Env struct {
|
||||
// Interactive: stdin and stdout are a terminal. Without it no command
|
||||
// ever waits for input (CLI-03).
|
||||
Interactive bool
|
||||
// Program is the command name in messages ("yet" or "yetano-solutions").
|
||||
// Program is the command name in messages.
|
||||
Program string
|
||||
// Catalogs are default catalog directories (an installed knowledge
|
||||
// bundle); --catalog and $YETANO_SOLUTIONS_CATALOG come first.
|
||||
@@ -86,7 +81,7 @@ func Run(ctx context.Context, args []string, env Env) int {
|
||||
env.Getenv = os.Getenv
|
||||
}
|
||||
if env.Program == "" {
|
||||
env.Program = "yet"
|
||||
env.Program = "yetano-solutions"
|
||||
}
|
||||
if env.Stdin == nil {
|
||||
env.Stdin = os.Stdin
|
||||
@@ -160,7 +155,7 @@ func (a *app) dispatch(args []string) error {
|
||||
return a.usage(cmd)
|
||||
}
|
||||
|
||||
// Usage is the help text (also for yet's usage()).
|
||||
// Usage is the help text.
|
||||
const Usage = `Solutions Guide -- describe what you want to achieve, get native configuration:
|
||||
|
||||
solution list|search|show|setup|generate|validate|plan|doctor
|
||||
|
||||
Reference in new issue
Block a user