chore: refactor parser parse

This commit is contained in:
uccu 2022-05-21 18:07:30 +08:00
parent b877dad590
commit 78d7d3af28

View file

@ -5,6 +5,15 @@ from ruamel.yaml import YAML
from compose_viz.compose import Compose, Service from compose_viz.compose import Compose, Service
from compose_viz.extends import Extends from compose_viz.extends import Extends
class service_parse_rule:
def __init__(
self,
name: str, parse_path: List[str],
target: List[str]
) -> None:
self.name = name
self.parse_path = parse_path
self.target = target
class Parser: class Parser:
def __init__(self): def __init__(self):