Source code for superduperdb.cli.config

import json

from typer import Option

from superduperdb import CFG

from . import command


[docs] @command(help='Print all the SuperDuperDB configs as JSON') def config( schema: bool = Option( False, '--schema', '-s', help='If set, print the JSON schema for the model' ), ): d = CFG.schema() if schema else CFG.dict() print(json.dumps(d, indent=2))