{"id":17384434,"url":"https://github.com/jakubriegel/kshell","last_synced_at":"2026-05-19T05:36:26.960Z","repository":{"id":117762040,"uuid":"201460058","full_name":"jakubriegel/kshell","owner":"jakubriegel","description":"Runner for Kotlin shell scripts","archived":false,"fork":false,"pushed_at":"2019-08-30T14:22:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T23:41:55.014Z","etag":null,"topics":["kotlin","script","shell"],"latest_commit_sha":null,"homepage":"https://github.com/jakubriegel/kotlin-shell","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakubriegel.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-08-09T12:06:27.000Z","updated_at":"2019-08-21T07:50:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b79d3a7-1171-4752-a416-3abfccd82e4d","html_url":"https://github.com/jakubriegel/kshell","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakubriegel%2Fkshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakubriegel%2Fkshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakubriegel%2Fkshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakubriegel%2Fkshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakubriegel","download_url":"https://codeload.github.com/jakubriegel/kshell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924500,"owners_count":20694731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["kotlin","script","shell"],"created_at":"2024-10-16T07:45:28.059Z","updated_at":"2025-10-30T08:55:53.575Z","avatar_url":"https://github.com/jakubriegel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kshell\nRunner for `sh.kts` scripts\n\nTo learn more about Kotlin Shell check [here](\"https://github.com/jakubriegel/kotlin-shell\")\n\n## get it\n\nTo run `kshell` you need `kotlin-shell-core` and `kotlin-shell-kts` as well as `kotlinc` installed.\n\nPackages with libraries can be found in this repository releases.\n\n## run\nKotlin Shell scripts have `.sh.kts` extension\n\n### command line\nTo run type:\n```shell\nkshell SCRIPT.sh.kts ARGS\n```\n\nexample:\n```shell\nkshell hello.sh.kts\n```\n\n```shell\nkshell greeting.sh.kts John\n```\n\n### shebang\nAdd `kshell` to `PATH` and `#!/usr/bin/env kshell` at the begining of a script file to be able to use it as executable.\n\nexample:\n_hello.sh.kts_\n```shell\n#!/usr/bin/env kshell\nshell { \"echo hello world!\"() } \n```\n\n```shell\n$ export PATH=$PATH:path/to/kshell\n$ chmod +x hello.sh.kts\n$ ./hello.sh.kts\nhello\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakubriegel%2Fkshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakubriegel%2Fkshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakubriegel%2Fkshell/lists"}