patches
This commit is contained in:
parent
e683db57b3
commit
a2298cf463
7 changed files with 24 additions and 8 deletions
|
|
@ -11,7 +11,7 @@ from ..steps.main import EditHighlightedCodeStep, SolveTracebackStep, RunCodeSte
|
|||
from ..recipes.WritePytestsRecipe.main import WritePytestsRecipe
|
||||
from ..recipes.ContinueRecipeRecipe.main import ContinueStepStep
|
||||
from ..steps.comment_code import CommentCodeStep
|
||||
from ..recipes.DDtoBQRecipe.main import DDtoBQRecipeRecipe
|
||||
from ..recipes.DDtoBQRecipe.main import DDtoBQRecipe
|
||||
from ..steps.core.core import MessageStep
|
||||
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ class DemoPolicy(Policy):
|
|||
elif "/dlt" in observation.user_input.lower():
|
||||
return CreatePipelineRecipe()
|
||||
elif "/ddtobq" in observation.user_input.lower():
|
||||
return DDtoBQRecipeRecipe()
|
||||
return DDtoBQRecipe()
|
||||
elif "/airflow" in observation.user_input.lower():
|
||||
return DeployPipelineAirflowRecipe()
|
||||
elif "/transform" in observation.user_input.lower():
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from .steps import SetUpChessPipelineStep, SwitchDestinationStep, LoadDataStep
|
|||
# https://github.com/dlt-hub/dlt/pull/392
|
||||
|
||||
|
||||
class DDtoBQRecipeRecipe(Step):
|
||||
class DDtoBQRecipe(Step):
|
||||
hide: bool = True
|
||||
|
||||
async def run(self, sdk: ContinueSDK):
|
||||
|
|
|
|||
|
|
@ -42,6 +42,22 @@ class SetupPipelineStep(Step):
|
|||
- `pip install -r requirements.txt`: Install the Python dependencies for the pipeline"""), name="Setup Python environment")
|
||||
|
||||
|
||||
class RunPipelineStep(Step):
|
||||
hide: bool = True
|
||||
name: str = "Run dlt Pipeline"
|
||||
|
||||
source_name: str
|
||||
|
||||
async def describe(self, models: Models):
|
||||
pass
|
||||
|
||||
async def run(self, sdk: ContinueSDK):
|
||||
await sdk.run([
|
||||
f'python3 {self.source_name}_pipeline.py',
|
||||
], description=dedent(f"""\
|
||||
Running the command `python3 {self.source_name}_pipeline.py to run the pipeline: """), name="Run dlt pipeline")
|
||||
|
||||
|
||||
class DeployAirflowStep(Step):
|
||||
hide: bool = True
|
||||
source_name: str
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from ..core.main import ContinueSDK, Models, Step
|
||||
from .main import UserInputStep
|
||||
from ..recipes.CreatePipelineRecipe.main import CreatePipelineRecipe
|
||||
from ..recipes.DDtoBQRecipe.main import DDtoBQRecipeRecipe
|
||||
from ..recipes.DDtoBQRecipe.main import DDtoBQRecipe
|
||||
from ..recipes.DeployPipelineAirflowRecipe.main import DeployPipelineAirflowRecipe
|
||||
from ..recipes.DDtoBQRecipe.main import DDtoBQRecipe
|
||||
from ..recipes.AddTransformRecipe.main import AddTransformRecipe
|
||||
|
|
@ -9,7 +9,7 @@ from ..recipes.AddTransformRecipe.main import AddTransformRecipe
|
|||
step_name_to_step_class = {
|
||||
"UserInputStep": UserInputStep,
|
||||
"CreatePipelineRecipe": CreatePipelineRecipe,
|
||||
"DDtoBQRecipeRecipe": DDtoBQRecipeRecipe,
|
||||
"DDtoBQRecipe": DDtoBQRecipe,
|
||||
"DeployPipelineAirflowRecipe": DeployPipelineAirflowRecipe,
|
||||
"AddTransformRecipe": AddTransformRecipe,
|
||||
"DDtoBQRecipe": DDtoBQRecipe
|
||||
|
|
|
|||
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.0.28",
|
||||
"version": "0.0.31",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.0.28",
|
||||
"version": "0.0.31",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@electron/rebuild": "^3.2.10",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
"displayName": "Continue",
|
||||
"pricing": "Free",
|
||||
"description": "Refine code 10x faster",
|
||||
"version": "0.0.28",
|
||||
"version": "0.0.31",
|
||||
"publisher": "Continue",
|
||||
"engines": {
|
||||
"vscode": "^1.74.0"
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Reference in a new issue