Expand description
Shared code generation utilities for Bao CLI generator.
This crate provides language-agnostic abstractions and utilities
used by language-specific code generators (e.g., bao-codegen-rust).
Structs§
- Clean
Result - Result of cleaning orphaned files
- Code
Builder - Fluent API for building code with proper indentation.
- Command
Info - Info about a command for code generation
- Command
Tree - A traversable view of the command tree in a schema.
- Context
Field Info - Info about a context field for code generation
- Dependency
Collector - Tracks package dependencies with versions and features.
- Dependency
Spec - Specification for a package dependency.
- File
Builder - Composable file builder that combines import collection with code generation.
- Flat
Command - Flattened command info for easier processing.
- Generate
Result - Result of code generation
- Handler
Paths - Manages handler file paths for a code generator.
- Import
Collector - Tracks imports and deduplicates them.
- Naming
Convention - Language-specific naming conventions.
- Orphan
Handler - Information about an orphaned handler file.
- Pool
Config Info - Pool configuration for code generation
- Preview
File - A generated file for preview
- Sqlite
Config Info - SQLite-specific configuration for code generation
Enums§
- Indent
- Indentation style for generated code.
Traits§
- Language
Codegen - Trait for language-specific code generators.
- Type
Mapper - Trait for mapping schema types to language-specific type strings.
Functions§
- find_
orphan_ commands - Find orphaned generated command files in a directory.