INNER CODE UNIT · Python
write_uid_to_file
gorilla-llm/gorilla-cli · go_cli.py:63
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):
# Inspired from
stdin = 0
# Save TTY attributes for stdin