Compiler
tc compile
does the following:
- Discovers functions recursively in the current directory.
- Generates build instructions for the discovered functions.
- Interns remote, shared and local functions
- Reads the topology.yml file and validates it using input specification
- Generates the target representations for these entities specific to a provider
- Generates graphql output for mutations definition in topology.yml
- Transpiles flow definitions to stepfn etc.
- Generates checksum of all function directories
- Detects circular flows
To generate the topology in curent directory
tc compile [--recursive]
To generate tree of all functions
cd examples/apps/retail
tc compile -c functions -f tree
retail
├╌╌ payment
┆ ├╌╌ payment_stripe_{{sandbox}}
┆ ┆ ├╌╌ python3.10
┆ ┆ ├╌╌ provided
┆ ┆ └╌╌
┆ └╌╌ payment_klarna_{{sandbox}}
┆ ├╌╌ python3.10
┆ ├╌╌ provided
┆ └╌╌
├╌╌ pricing
┆ └╌╌ pricing_resolver_{{sandbox}}
┆ ├╌╌ python3.10
┆ ├╌╌ provided
┆ └╌╌