From 78d7d3af28b04d0df1a16f5b83d71ae34b4ec2b2 Mon Sep 17 00:00:00 2001 From: uccu Date: Sat, 21 May 2022 18:07:30 +0800 Subject: [PATCH] chore: refactor parser parse --- compose_viz/parser.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/compose_viz/parser.py b/compose_viz/parser.py index b46cb9f..8a711cf 100644 --- a/compose_viz/parser.py +++ b/compose_viz/parser.py @@ -5,6 +5,15 @@ from ruamel.yaml import YAML from compose_viz.compose import Compose, Service 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: def __init__(self):