mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-27 05:29:03 +08:00
feat: add issue_templates for creation of icons (#935)
Co-authored-by: Dashboard Icons Bot <homarr-labs@proton.me>
This commit is contained in:
14
scripts/print_icon_name.py
Normal file
14
scripts/print_icon_name.py
Normal 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))
|
||||
Reference in New Issue
Block a user