INNER CODE UNIT · Python
generate_random_uid
gorilla-llm/gorilla-cli · go_cli.py:54
def generate_random_uid():
return str(uuid.uuid4())
def get_git_email():
return subprocess.check_output(["git", "config", "--global", "user.email"]).decode("utf-8").strip()
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: