Forge.GenSchema
Forge.GenSchema — forge bastion gen schema/json/context
Generates Depot schema modules, migration files, context modules, and JSON API handlers from CLI arguments.
Subcommands: forge bastion gen schema <Module> <table> field:type ... forge bastion gen json <Context> <Module> field:type ... forge bastion gen context <Context> <Module>
Ported from cmd_bastion_gen.ml.
Functions
Generate a context module only.
forge bastion gen context <Context> <Module>Generate a JSON API scaffold: schema, migration, context, handler, and test.
forge bastion gen json <Context> <Module> field:type ...Generate a Depot schema module and migration from a list of field:type specs.
forge bastion gen schema <Module> <table> field:type ...