Skip to main content

Module builtins

Module builtins 

Source
Expand description

Built-in fdl sub-commands (setup, install, completions, schema, config, libtorch, diagnose, init, skill, …). Registry of built-in commands. Single source of truth for dispatch, help listing, collision detection, and shell completion.

Each leaf sub-command owns a #[derive(FdlArgs)] struct that carries the canonical flag set. BuiltinSpec::schema_fn returns the Schema derived from that struct, so completion rules (--cuda <TAB>12.6 12.8, etc.) flow through the same pipeline as project commands rather than a hand-mirrored flag table.

Structs§

ApiRefArgs
Generate flodl API reference.
BuiltinSpec
One built-in command (or sub-command) slot.
DiagnoseArgs
System and GPU diagnostics.
InitArgs
Scaffold a new floDl project.
InstallArgs
Install or update fdl globally (~/.local/bin/fdl).
LibtorchActivateArgs
Activate a libtorch variant.
LibtorchBuildArgs
Build libtorch from source.
LibtorchDownloadArgs
Download a pre-built libtorch variant.
LibtorchListArgs
List installed libtorch variants.
LibtorchRemoveArgs
Remove a libtorch variant.
SchemaClearArgs
Clear cached schemas. No command name clears all.
SchemaListArgs
List cached --fdl-schema outputs.
SchemaRefreshArgs
Re-probe each entry and rewrite the cache.
SetupArgs
Interactive guided setup wizard.
SkillInstallArgs
Install AI coding assistant skills.

Functions§

is_builtin_name
True when name is a reserved top-level built-in (visible or hidden). Drives env-collision detection in first-arg resolution.
registry
Ordered registry of every built-in. Order drives fdl -h and the top-level completion word list, so it mirrors today’s BUILTINS const in main.rs.
visible_top_level
Visible top-level built-ins as (name, description) pairs, in registry order. Feeds run::print_project_help and the fallback print_usage.