Make a basic setup with invoke.
Fix log information. Remove unused script file.
This commit is contained in:
+1
-30
@@ -2,7 +2,6 @@ import logging
|
||||
import os
|
||||
import json
|
||||
import requests
|
||||
import argparse
|
||||
|
||||
from pathlib import Path
|
||||
from subprocess import run, CalledProcessError
|
||||
@@ -90,32 +89,4 @@ def get_all_tags_from_docker():
|
||||
|
||||
# All tags data:
|
||||
for release in j:
|
||||
print(release)
|
||||
|
||||
|
||||
ACTIONS = {
|
||||
'clean': clean_all_dockers,
|
||||
'get-tags-release': get_all_tags_from_blender,
|
||||
'get-tags-docker': get_all_tags_from_docker,
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
# Todo Use invoke ?
|
||||
"""
|
||||
Call function from the command line
|
||||
Ex: python ./blender/misc.py get-tags-release
|
||||
:return:
|
||||
"""
|
||||
parser = argparse.ArgumentParser(description='Blender docker helper')
|
||||
parser.add_argument('action',
|
||||
choices=ACTIONS.keys(),
|
||||
help='Action selected'
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
ACTIONS[args.action]()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
print(release)
|
||||
Reference in New Issue
Block a user