|
@@ -103,6 +103,12 @@ class Script(Action):
|
|
|
|
|
|
|
|
shell: Shell = Shell.DEFAULT
|
|
shell: Shell = Shell.DEFAULT
|
|
|
script: str
|
|
script: str
|
|
|
|
|
+ _lines: list[str] = PrivateAttr()
|
|
|
|
|
+
|
|
|
|
|
+ def model_post_init(self, context: Any, /) -> None:
|
|
|
|
|
+ self._lines = self.script.splitlines()
|
|
|
|
|
+ if self.name is None:
|
|
|
|
|
+ self.name = self._lines[0]
|
|
|
|
|
|
|
|
@final
|
|
@final
|
|
|
@cipy.runner.ipc
|
|
@cipy.runner.ipc
|