feat: add issue_templates for creation of icons (#935)

Co-authored-by: Dashboard Icons Bot <homarr-labs@proton.me>
This commit is contained in:
Meier Lukas
2025-02-15 15:59:12 +01:00
committed by GitHub
parent 02aaf9bb7f
commit d1e008be5f
56 changed files with 18527 additions and 44 deletions

View File

@@ -0,0 +1,14 @@
import os
import sys
from icons import IssueFormType, checkAction, iconFactory, checkType
ISSUE_FORM_ENV_VAR = "INPUT_ISSUE_FORM"
def main(type: str, action: IssueFormType, issue_form: str):
icon = iconFactory(type, issue_form, action)
print(icon.name)
if (__name__ == "__main__"):
type = checkType(sys.argv[1])
action = checkAction(sys.argv[2])
main(type, action, os.getenv(ISSUE_FORM_ENV_VAR))