mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
15 lines
238 B
Python
15 lines
238 B
Python
from sys import stderr
|
|
import subprocess
|
|
|
|
|
|
def get_exec_from_args(args: list):
|
|
return args[1]
|
|
|
|
|
|
def run_command(command):
|
|
try:
|
|
return f"{subprocess.check_output(command)}"
|
|
except Exception as e:
|
|
return f"{e}"
|
|
|