Skip to content

introspect command ​

Output machine-readable JSON describing the project structure.

bash
fobis introspect [options]

How to use it, with examples: Building, CI and machine output.

All options ​

OptionValueDefaultDescription
--fobos, -fTEXTSpecify a "fobos" file named differently from "fobos"
--fciAssume fobos inputs as case insensitive
--modeTEXTSelect a mode defined into a fobos file
--shadowTEXTRebuild the mode as a shadow (checks, sanitize or strict): the mode's settings with checking flags, in its own build directory (.fobis/shadow/<mode>-<shadow>/).
--sourcesShow source files
--compilerShow compiler info
--dependenciesShow declared dependencies
--targetsShow build targets
--include-dirsShow include directories
--buildoptionsShow all fobos mode options
--projectinfoShow [project] section metadata
--varsetsShow available [varset:NAME] sections and their bindings
--allShow all introspection data
--compile-commandsPrint the compilation database of the mode's build (what fobis build writes in compile_commands.json) and compile nothing; not combinable with the other sections
--writeWrite individual intro-*.json files into .fobis-info/
--formatTEXTjsonOutput format: json (default) or toml
--varsetTEXTApply one or more [varset:NAME] sections' $variable bindings (comma- or space-separated; last write wins) before resolving introspection data.