Skip to content

Commit

Permalink
fix(python): remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Nov 13, 2023
1 parent b3c3fb7 commit 7edf28f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
8 changes: 4 additions & 4 deletions sdks/dotnet/cyan.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
username: ernest
username: kirinnee
name: dotnet-handlebar
description: .NET Handlebar to process templates
project: https://github.com/tr8team/template.nestjs
source: https://github.com/tr8team/template.nestjs
email: ernest@tr8.io
project: https://github.com
source: https://github.com
email: kirinnee97@gmail.com
tags:
- dotnet
- handlerbar
Expand Down
13 changes: 0 additions & 13 deletions sdks/python/cyanprintsdk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
from cyanprintsdk.api.template.req import TemplateAnswerReq, TemplateValidateReq
from cyanprintsdk.api.template.res import TemplateRes, TemplateValidRes
from cyanprintsdk.domain.core.cyan_script import ICyanPlugin, ICyanProcessor, ICyanTemplate, ICyanExtension
from cyanprintsdk.domain.core.cyan_script_model import CyanProcessorInput
from cyanprintsdk.domain.core.fs.cyan_fs_helper import CyanFileHelper
from cyanprintsdk.domain.extension.input import ExtensionAnswerInput, ExtensionValidateInput
from cyanprintsdk.domain.extension.output import ExtensionOutput
from cyanprintsdk.domain.extension.service import ExtensionService
Expand Down Expand Up @@ -193,14 +191,3 @@ async def ext_validate(request):
app.add_routes([web.post('/api/extension/validate', ext_validate)])

web.run_app(app, port=5550)


async def simple_output(i: CyanProcessorInput, fs: CyanFileHelper) -> ProcessorOutput:
templates = fs.resolve_all()
for t in templates:
t.relative = t.relative + ".tpl"
t.write_file()
return ProcessorOutput(directory=i.write_dir)


start_processor_with_fn(simple_output)

0 comments on commit 7edf28f

Please sign in to comment.