brilliantlabsAR / noa-for-ios

You AI companion. ChatGPT and translation for Monocle AR
ISC License
73 stars 15 forks source link

Conditional uploading of files only if `ARGPT_VERSION` doesn't match the latest #7

Closed siliconwitch closed 1 year ago

siliconwitch commented 1 year ago

Flow looks like:

# Enter the raw REPL
^C^C^A # I noticed sometimes double Ctrl-C is needed to fully exit an app
raw REPL; CTRL-B to exit
>

print(ARGPT_VERSION)^D
'1.3.5'

# If version matches the latest, send ^D and exit, otherwise:

f = open('main.py', 'w+')^D
OK>

f.write(<the entire file>)^D
OK>

f.close()^D
OK>

f = open('states.py', 'w+')^D
OK>

f.write(<the entire file>)^D
OK>

f.close()^D
OK>

f = open('graphics.py', 'w+')^D
OK>

f.write(<the entire file>)^D
OK>

f.close()^D
OK>

# Empty ^D to start the app
^D
State: Welcome # You'll see now that the app has started