Exemplo n.º 1
0
def jsonpath(ctx, **kwargs):
    """ Search expanded config for values by given JSONPATH. """
    run_command_with_config(ConfigCommand, ctx, **kwargs)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
def templates(ctx, **kwargs):
    """Get upstream templates and apply downstream patches"""
    run_command_with_config(TemplatesCommand, ctx, **kwargs)
Exemplo n.º 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)
Exemplo n.º 6
0
def test(ctx, **kwargs):
    """Run tests for generated source code"""
    run_command_with_config(TestCommand, ctx, **kwargs)
Exemplo n.º 7
0
def generate(ctx, **kwargs):
    """Generate client code"""
    run_command_with_config(GenerateCommand, ctx, **kwargs)
Exemplo n.º 8
0
def split(ctx, **kwargs):
    """Split single specified input-file OpenAPI spec file into multiple files"""
    run_command_with_config(SplitCommand, ctx, **kwargs)