Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#66: Clean up interfaces, merge into one
Browse files Browse the repository at this point in the history
blackandred committed Jul 14, 2021
1 parent 9b334ec commit 1e52109
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/rkd/core/task_factory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import signature as get_signature
from types import FunctionType
from typing import Dict, Type, Tuple, Optional, List
from rkd.core.api.contract import TaskInterface
from rkd.core.api.contract import TaskInterface, ExtendableTaskInterface
from rkd.core.api.inputoutput import ReadableStreamType
from rkd.core.exception import TaskFactoryException

5 changes: 2 additions & 3 deletions src/php/rkd/php/composer.py
Original file line number Diff line number Diff line change
@@ -2,9 +2,8 @@
import os
from argparse import ArgumentParser
from typing import List
from rkd.core.api.contract import TaskInterface, ExecutionContext
from rkd.core.api.contract import TaskInterface, ExecutionContext, ExtendableTaskInterface
from rkd.core.api.inputoutput import IO
from rkd.core.api.lifecycle import CompilationLifecycleEventAware
from rkd.core.api.syntax import TaskDeclaration
from rkd.core.execution.lifecycle import CompilationLifecycleEvent

@@ -59,7 +58,7 @@ def configure_argparse(self, parser: ArgumentParser):
parser.add_argument('--clear', help='Force remove `vendor` directory first', action='store_true')


class ComposerIntegrationTask(TaskInterface, CompilationLifecycleEventAware):
class ComposerIntegrationTask(ExtendableTaskInterface):
"""Runs tasks from composer.json"""

def get_name(self) -> str:

0 comments on commit 1e52109

Please sign in to comment.