视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
go-cobra-applications【文档与办公】Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit precedence, safe live reload, context propagation, stable streams, shell completion, and generated documentation. Use for Cobra or Viper CLI architecture…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Keep Cobra and Viper at the application edge. Construct a fresh command tree per execution and translate CLI state into typed application calls.
| Task | Load |
|---|---|
| Build or restructure a Cobra application | guidelines.md, workflows/build-cobra-command-tree.md |
| Apply command-tree, flag, config, and testing rules | references/cobra-applications/rules.md |
| Use constructors and focused implementation examples | references/cobra-applications/examples.md |
| Inject services or resolve configuration | references/cobra-applications/patterns.md |
| Review a Cobra/Viper application | references/cobra-applications/checklist.md |
| Understand architecture, completion, and docs | references/cobra-applications/knowledge.md |
init-driven application wiring.Guidance is transformed and paraphrased from Ricardo Gerardi, Powerful Command-Line Applications in Go (Pragmatic Bookshelf, 2021), especially Chapter 7. Examples are original adaptations.
Book: https://pragprog.com/titles/rggo/powerful-command-line-applications-in-go/
The book's 2021 generator flow is historical. Verify current APIs and tooling against https://cobra.dev/ and https://github.com/spf13/viper before use.
Suggestion, remote configuration, and live-reload guidance also incorporates transformed material from Marian Montagnino, Building Modern CLI Applications in Go (Packt, 2023), especially Chapter 4.
Parser-boundary guidance also incorporates transformed material from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapter 4.