Fix minor bugs caused from merging in setupcontroller; Initialize vscode example loading

This commit is contained in:
Timothyxxx
2024-01-14 00:51:26 +08:00
parent 347160a35f
commit 2228f346a9
14 changed files with 148 additions and 138 deletions

View File

@@ -1,7 +1,5 @@
from typing import Dict
import os
import requests
from typing import Dict
def get_string(env, config: Dict[str, str]) -> str:
@@ -12,12 +10,13 @@ def get_string(env, config: Dict[str, str]) -> str:
return config["string"]
def get_command_line(env, config: Dict[str, str]) -> str:
"""
Config:
string (str)
"""
f = os.popen(config["command"])
return f.read()
return f.read()