cli: add name to master subs
This commit is contained in:
@@ -151,14 +151,14 @@ class ServiceCreator:
|
||||
service_name: str,
|
||||
starton: str = "0",
|
||||
autooff: str = "0",
|
||||
) -> str:
|
||||
) -> None:
|
||||
"""
|
||||
Parses the configuration text and appends a new row before the closing bracket.
|
||||
"""
|
||||
with open(MASTER_IOC_SUBS_FILE) as f:
|
||||
file_content = f.read()
|
||||
|
||||
new_row = f' {{ "{{{{ agebd_env }}}}" , "{service_name:<20}" , "{starton}", "{autooff}" }}'
|
||||
new_row = f' {{ "{{{{ agebd_env }}}}", "{service_name:<20}" , "{starton}", "{autooff}" }}'
|
||||
|
||||
# Use regex to find the last closing curly brace of the configuration block
|
||||
# This targets the line that contains only a lone closing brace, optional spaces, and maybe a comma/semicolon.
|
||||
|
||||
Reference in New Issue
Block a user