Make a basic setup with invoke.

Fix log information.
Remove unused script file.
This commit is contained in:
2026-07-24 09:53:36 +02:00
parent bb3de8fd4e
commit 062132487b
6 changed files with 124 additions and 88 deletions
+1 -30
View File
@@ -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)