Added main entry point
This commit is contained in:
@@ -163,9 +163,6 @@ def call_open_ai(query):
|
|||||||
|
|
||||||
return response.choices[0].message.content.strip()
|
return response.choices[0].message.content.strip()
|
||||||
|
|
||||||
#Enable color output on Windows using colorama
|
|
||||||
init()
|
|
||||||
|
|
||||||
def check_for_issue(response):
|
def check_for_issue(response):
|
||||||
"""
|
"""
|
||||||
Todo
|
Todo
|
||||||
@@ -235,9 +232,21 @@ def evaluate_input(user_input, command):
|
|||||||
pyperclip.copy(command)
|
pyperclip.copy(command)
|
||||||
print("Copied command to clipboard.")
|
print("Copied command to clipboard.")
|
||||||
|
|
||||||
res_command = call_open_ai(user_prompt)
|
|
||||||
check_for_issue(res_command)
|
def main():
|
||||||
check_for_markdown(res_command)
|
"""
|
||||||
user_input = prompt_user_input(res_command)
|
Defined starting point of source code.
|
||||||
print()
|
"""
|
||||||
evaluate_input(user_input, res_command)
|
|
||||||
|
#Enable color output on Windows using colorama
|
||||||
|
init()
|
||||||
|
|
||||||
|
res_command = call_open_ai(user_prompt)
|
||||||
|
check_for_issue(res_command)
|
||||||
|
check_for_markdown(res_command)
|
||||||
|
user_input = prompt_user_input(res_command)
|
||||||
|
print()
|
||||||
|
evaluate_input(user_input, res_command)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Reference in New Issue
Block a user