From a47e42a9c23396548c8ee9ab25497acad4d45093 Mon Sep 17 00:00:00 2001 From: kNoAPP Date: Mon, 1 Apr 2024 09:06:14 -0700 Subject: [PATCH] Add 3.3/stable yolks and git reset options to dart egg --- generic/dart/egg-dart-generic.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/generic/dart/egg-dart-generic.json b/generic/dart/egg-dart-generic.json index 5e012d50..585042e8 100644 --- a/generic/dart/egg-dart-generic.json +++ b/generic/dart/egg-dart-generic.json @@ -10,12 +10,14 @@ "description": "A generic dart CLI egg.\r\n\r\nThis will clone a dart CLI application. it defaults to master if no branch is specified.\r\n\r\nInstalls the pubspec.yaml packages on run. If you set user_upload then I assume you know what you are doing.", "features": null, "docker_images": { + "Dart_stable": "ghcr.io\/parkervcp\/yolks:dart_stable", + "Dart_3.3": "ghcr.io\/parkervcp\/yolks:dart_3.3", "Dart_2.19": "ghcr.io\/parkervcp\/yolks:dart_2.19", "Dart_2.18": "ghcr.io\/parkervcp\/yolks:dart_2.18", "Dart_2.17": "ghcr.io\/parkervcp\/yolks:dart_2.17" }, "file_denylist": [], - "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; dart pub get; dart run", + "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ -d .git ]] && [[ {{AUTO_RESET}} == \"1\" ]]; then git reset --hard; fi; dart pub get; dart run", "config": { "files": "{}", "startup": "{\r\n \"done\": \"change this part\"\r\n}", @@ -70,6 +72,16 @@ "rules": "required|boolean", "field_type": "text" }, + { + "name": "Auto Reset", + "description": "Git reset the latest files on startup when using a GitHub repo.", + "env_variable": "AUTO_RESET", + "default_value": "0", + "user_viewable": true, + "user_editable": true, + "rules": "required|boolean", + "field_type": "text" + }, { "name": "Git Username", "description": "Username to auth with git.",