Add 3.3/stable yolks and git reset options to dart egg (#2845)

* Add 3.3/stable yolks and git reset options to dart egg

* Update order of ops

* Export from panel
This commit is contained in:
Alden Bansemer 2024-04-02 03:25:36 -07:00 committed by GitHub
parent 4bd2c100e7
commit 400b7b3565
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,18 +4,20 @@
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-02-24T17:58:34+01:00",
"exported_at": "2024-04-01T13:16:45-07:00",
"name": "dart generic",
"author": "alden@knoban.com",
"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\/knoapp\/yolks:dart_stable",
"Dart_3.3": "ghcr.io\/knoapp\/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_RESET}} == \"1\" ]]; then git reset --hard; fi; if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; 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": "Hard 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.",