torchdms.cli.default_map_of_ctx_or_parent

torchdms.cli.default_map_of_ctx_or_parent(ctx)[source]

Get the default_map from this context or the parent context.

In our application, the default_map is parsed from the JSON configuration file. The parent context can be useful if we are invoked from another subcommand.