Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
LockPath string `name:"lock" placeholder:"PATH" default:"w17/lock.yaml" help:"Path to write the lock file."`
W17URL string `` /* 137-byte string literal not displayed */
GoModule string `` /* 229-byte string literal not displayed */
Name string `` /* 289-byte string literal not displayed */
StubsRoot string `name:"stubs-root" placeholder:"DIR" help:"Go stub tree root (pb + grpc clients). Empty = ask (default \"srcgo/gen\")."`
Language string `name:"language" placeholder:"LANG" help:"Pb stubs language. Empty = ask (default \"go\"; only \"go\" supported today)."`
ProtoDir string `name:"proto-dir" placeholder:"DIR" help:"Hand-authored proto root. Empty = ask (default \"proto\")."`
LanguagesDir string `name:"languages-dir" placeholder:"DIR" help:"Shared gettext catalog tree. Empty = ask (default \"w17/languages\")."`
Languages string `` /* 131-byte string literal not displayed */
E2E string `` /* 173-byte string literal not displayed */
CI string `` /* 229-byte string literal not displayed */
SkipConnections bool `name:"skip-connections" help:"Skip the connection-add loop. Operator wires connections later via \"w17ctl connection add\"."`
Org string `` /* 206-byte string literal not displayed */
}
Cmd is `w17ctl init` — the bootstrap wizard. Prompts the operator for project basics + layout + i18n + password + connections, registers the project with the console (which assigns a stable project_id), and writes a signed `w17/lock.yaml`.
Every prompt has a matching flag so the command runs non-interactively when every value is supplied up front; otherwise the wizard prompts for missing pieces with e2e-project-shaped defaults the operator can Enter through.
Click to show internal directories.
Click to hide internal directories.