{"id":24752524,"url":"https://github.com/shengyou/kotlin-script","last_synced_at":"2026-04-13T23:31:08.338Z","repository":{"id":68637357,"uuid":"258152736","full_name":"shengyou/kotlin-script","owner":"shengyou","description":"示範如何使用 Kotlin Script 及 kscript 做自動化工具","archived":false,"fork":false,"pushed_at":"2020-04-23T10:08:10.000Z","size":8131,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T04:28:03.905Z","etag":null,"topics":["automation","console","kotlin","kscript","scripting-language","shell","terminal"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shengyou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-23T09:19:39.000Z","updated_at":"2020-08-21T03:18:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e77dbc6-ffaf-444f-ac12-8a378813649b","html_url":"https://github.com/shengyou/kotlin-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shengyou/kotlin-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2Fkotlin-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2Fkotlin-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2Fkotlin-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2Fkotlin-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shengyou","download_url":"https://codeload.github.com/shengyou/kotlin-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2Fkotlin-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31775692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","console","kotlin","kscript","scripting-language","shell","terminal"],"created_at":"2025-01-28T10:50:14.862Z","updated_at":"2026-04-13T23:31:08.319Z","avatar_url":"https://github.com/shengyou.png","language":"Kotlin","readme":"# 用 Kotlin 做自動化工具\n\n雖然 Kotlin 的主流用法都是拿來寫手機、伺服器或是桌面應用程式，但其實 Kotlin 也具備 Scripting Language 的特點，可以在 Terminal 底下隨寫即跑，執行各種任務。在這場分享裡，將會介紹 Kotlin Script 這種特別的執行模式，示範如何把 Kotlin 當成 Scripting Language 用，並結合 kscript，依照不同情境需求撰寫自動化程式，最後再介紹幾個延伸應用的開放原始碼專案，展現把 Kotlin 當成強型別 Bash 的潛力。\n\n## 相關資源\n\n* 簡報檔：https://www.slideshare.net/shengyou/kotlin-script-as-automation-tools/\n* 原始碼：https://github.com/shengyou/kotlin-script\n\n### 警告！\n\n#### 這個範例程式碼僅是配合投影片上的展示而撰寫，範例內為配合概念演示，程式碼並非最佳實踐、程式內的諸多功能、錯誤處理也不完整，目的僅是做為概念驗證。請勿將這個程式碼佈署至上線機器，若因此造成您的損失恕不負責。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshengyou%2Fkotlin-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshengyou%2Fkotlin-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshengyou%2Fkotlin-script/lists"}