CLI Overview¶
Welcome to the gtb CLI! ๐
Our command-line tool is designed to be your best friend when building powerful, well-structured Go applications. It takes the heavy lifting out of boilerplate generation, allowing you to focus on what truly matters: your unique logic.
Why use the gtb CLI?¶
- Consistency: Ensures all your tools follow a standard, battle-tested structure.
- Speed: Go from an idea to a running command in seconds.
- HIerarchy Made Easy: Deeply nested commands? No problem. Our CLI handles the package structure and registration for you.
- AI-Powered Autonomous Repair: Convert scripts to Go and fix errors automatically using built-in coding agents.
- Self-Documenting: Every command you generate automatically gets its own documentation page.
Core Philosophical Principles¶
- Explicit is better than implicit: We use a Manifest (
.gtb/manifest.yaml) so your project's structure is always clear and transparent. - Encapsulated Logic: We separate command boilerplate from your actual implementation, making your code cleaner and easier to test.
- Safety First: Our templates use best practices like structured error handling and context propagation by default.
Getting Started¶
To install the CLI tool, run:
Once installed, you can explore the available generation tools:
Or if you are working directly in this repository:
In the following sections, we'll dive into how to scaffold a new project, grow it with hierarchical commands, and keep it documented with our AI-powered tools. Let's build something amazing! โจ
- Project Skeleton: Scaffold your next big idea.
- Generating Commands: Add functionality with ease.
- AI Script Conversion: Turn existing scripts into Go.
- Generating Documentation: Instant, AI-powered docs for commands and packages.
- CLI Manifest: Understand your project structure.
- MCP Server: Expose your tools via the Model Context Protocol.