Update wiki and ci stuff

This commit is contained in:
Mike A. Trethewey
2020-03-08 15:52:05 -07:00
parent d5b80380f2
commit 04404714d9
5 changed files with 66 additions and 47 deletions

View File

@@ -1,15 +1,20 @@
import subprocess # do stuff at the shell level
def git_clean():
excludes = [
".vscode", # vscode IDE files
".idea", # idea IDE files
"*.json", # keep JSON files for that one time I just nuked all that I was working on, oops
"*app*version.*" # keep appversion files
]
excludes = ['--exclude={0}'.format(exclude) for exclude in excludes]
# clean the git slate
subprocess.check_call([
subprocess.check_call([
"git", # run a git command
"clean", # clean command
"-dfx", # d: directories, f: files, x: ignored files
"--exclude=.vscode", # keep vscode IDE files
"--exclude=.idea", # keep idea IDE files
"--exclude=*.json", # keep JSON files for that one time I just nuked all that I was working on, oops
"--exclude=*app*version.*"]) # keep appversion files
*excludes])
if __name__ == "__main__":
git_clean()