Skip to content

Commit

Permalink
CLI convoke + docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolytics committed Dec 26, 2024
1 parent 81a6932 commit cf333ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ test-benchmark:

.PHONY: start-backing-services
start-backing-services:
docker-compose -f dev/kafka-single.yml up -d
docker-compose -f dev/kafka-single.yml up -d

.PHONY: docker-image
docker-image:
docker build -t turbolytics/sql-flow .
11 changes: 7 additions & 4 deletions cmd/sql-flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import click
import duckdb

from sqlflow import logging
from sqlflow.config import new_from_path
from sqlflow.lifecycle import start, invoke
Expand Down Expand Up @@ -31,14 +33,15 @@ def dev():
pass


@click.command()
@click.command(name='invoke')
@click.argument('config')
@click.argument('fixture')
def invoke(config, fixture):
invoke(config, fixture)
def cli_invoke(config, fixture):
conn = duckdb.connect()
invoke(conn, config, fixture)


dev.add_command(invoke)
dev.add_command(cli_invoke)
cli.add_command(run)
cli.add_command(dev)

Expand Down

0 comments on commit cf333ed

Please sign in to comment.