INNER CODE UNIT · Python
get_system_info
gorilla-llm/gorilla-cli · go_cli.py:60
def get_system_info():
return platform.system()
def write_uid_to_file(uid):
with open(USERID_FILE, "w") as f:
f.write(uid)
def append_to_bash_history(selected_command):
try:
with open(os.path.expanduser("~/.bash_history"), "a") as history_file:
history_file.write(selected_command + '\n')
except Exception as e:
pass
def prefill_shell_cmd(cmd):