def jsonpath(ctx, **kwargs):
    """ Search expanded config for values by given JSONPATH. """
    run_command_with_config(ConfigCommand, ctx, **kwargs)
def config(ctx, **kwargs):
    """Displays information about the configuration for the spec being worked on, including supported languages,
    api versions, and the paths to the generated api yaml. These languages and api versions can be directly
    passed to the `--languages` and `--api-versions` flags of the supported commands."""
    if ctx.invoked_subcommand is None:
        run_command_with_config(ConfigCommand, ctx, **kwargs)
def jsonpath(ctx, **kwargs):
    """ Search expanded config for a single value by given JSONPATH. """
    kwargs["_get_value"] = True
    run_command_with_config(ConfigCommand, ctx, **kwargs)
Exemple #4
0
def templates(ctx, **kwargs):
    """Get upstream templates and apply downstream patches"""
    run_command_with_config(TemplatesCommand, ctx, **kwargs)
Exemple #5
0
def push(ctx, **kwargs):
    """Push the generated source code into each git repository specified in the config"""
    run_command_with_config(PushCommand, ctx, **kwargs)
Exemple #6
0
def test(ctx, **kwargs):
    """Run tests for generated source code"""
    run_command_with_config(TestCommand, ctx, **kwargs)
Exemple #7
0
def generate(ctx, **kwargs):
    """Generate client code"""
    run_command_with_config(GenerateCommand, ctx, **kwargs)
Exemple #8
0
def split(ctx, **kwargs):
    """Split single specified input-file OpenAPI spec file into multiple files"""
    run_command_with_config(SplitCommand, ctx, **kwargs)