1
0
Fork 0
mirror of https://github.com/homarr-labs/dashboard-icons.git synced 2025-07-03 09:46:29 +02:00
dashboard-icons/scripts/print_icon_name.py
Meier Lukas d1e008be5f
feat: add issue_templates for creation of icons ()
Co-authored-by: Dashboard Icons Bot <homarr-labs@proton.me>
2025-02-15 15:59:12 +01:00

14 lines
No EOL
418 B
Python

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))