{"id":21413560,"url":"https://github.com/monun/kommand","last_synced_at":"2026-01-14T02:13:22.526Z","repository":{"id":41108460,"uuid":"334633397","full_name":"monun/kommand","owner":"monun","description":null,"archived":true,"fork":false,"pushed_at":"2024-05-26T06:18:14.000Z","size":1493,"stargazers_count":106,"open_issues_count":5,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-14T04:39:49.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2021-01-31T10:57:43.000Z","updated_at":"2025-06-27T12:43:33.000Z","dependencies_parsed_at":"2025-07-14T03:31:34.879Z","dependency_job_id":"fdd3994c-ed16-4625-8016-f6a5ea2ac4bc","html_url":"https://github.com/monun/kommand","commit_stats":null,"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/monun/kommand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monun%2Fkommand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monun%2Fkommand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monun%2Fkommand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monun%2Fkommand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monun","download_url":"https://codeload.github.com/monun/kommand/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monun%2Fkommand/sbom","scorecard":{"id":659196,"data":{"date":"2025-08-11","repo":{"name":"github.com/monun/kommand","commit":"fc6754eb8ad3c420049ab2bf8825ea656485c89c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/dokka.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dokka.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/monun/kommand/dokka.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dokka.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/monun/kommand/dokka.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dokka.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/monun/kommand/dokka.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T15:35:05.099Z","repository_id":41108460,"created_at":"2025-08-21T15:35:05.099Z","updated_at":"2025-08-21T15:35:05.099Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-22T18:19:02.151Z","updated_at":"2026-01-14T02:13:22.503Z","avatar_url":"https://github.com/monun.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kommand\n\n[![Java](https://img.shields.io/badge/Java-17-ED8B00.svg?logo=openjdk)](https://www.azul.com/)\n[![Kotlin](https://img.shields.io/badge/Kotlin-1.8.22-585DEF.svg?logo=kotlin)](http://kotlinlang.org)\n[![Gradle](https://img.shields.io/badge/Gradle-8.2.1-02303A.svg?logo=gradle)](https://gradle.org)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.monun/kommand-api)](https://search.maven.org/artifact/io.github.monun/kommand-api)\n[![GitHub](https://img.shields.io/github/license/monun/kommand)](https://www.gnu.org/licenses/gpl-3.0.html)\n[![YouTube](https://img.shields.io/badge/YouTube-각별-red.svg?logo=youtube)](https://www.youtube.com/channel/UCDrAR1OWC2MD4s0JLetN0MA)\n\n### Command DSL for PaperMC Plugin (Brigadier)\n\n---\n\n* #### Features\n    * 명령어 분기 지원\n    * 인수 분석(Parsing)\n    * 명령어 제안 지원 (TabComplete)\n* #### Supported minecraft versions\n    * 1.17.1\n    * 1.18\n    * 1.18.1\n    * 1.18.2\n    * 1.19\n    * 1.19.1\n    * 1.19.2\n    * 1.19.3\n    * 1.19.4\n    * 1.20\n    * 1.20.1\n\n---\n\nPaper에는 명령어 실행을 위한 프레임워크가 없습니다.  \n다른 프레임워크를 사용하지 않고 독립형으로 명령어 실행 코드를 작성시 다음과 같은 패턴으로 작성하게 됩니다.\n\n```kotlin\nclass CommandDispatcher : CommandExecutor {\n    ...\n    override fun onCommand(...) {\n        val commandName = args[0]\n\n        if (\"first\".equals(commandName, true)) {\n            // first 명령 처리\n        } else if (\"second\".equals(commandName, true)) {\n            // second 명령 처리\n        } else {\n            // Error\n        }\n        //when 문으로도 구현 가능\n    }\n}\n...\n```\n\n위와 같은 코드는 명령문이 적을땐 간결하지만, 따라붙는 인수나 상수가 늘어나면 코드가 매우 지저분해지고 디버깅에도 어려움을 겪게됩니다.\n\n그래서 명령 처리는 신경쓰지 않고 최종 실행코드만 작성 할 수 있는 프레임워크가 필요해졌습니다.\n\n*Kommand*는 위와 같은 문제를 해결하고 명령문을 보다 직관적인 코드작성을 위한 DSL을 제공합니다.\n\n---\n아래와 같은 명령 체계가 있다고 생각해봅시다.\n\n* user\n    * create \\\u003cusername\u003e\n    * modify \\\u003cuser\u003e\n        * name \\\u003cnewName\u003e\n        * tag \\\u003cnewTag\u003e\n\n다음 코드는 Kommand의 DSL을 사용한 코드입니다.\n\n```kotlin\n//in JavaPlugin\nkommand {\n    register(\"user\") {\n        then(\"create\") {\n            then(\"name\" to string()) { //\"name\"이라는 이름의 String을 요청합니다.\n                executes { context -\u003e\n                    val name: String by context\n                    createUser(name) //명령어 실행 함수를 통해 실행\n                }\n            }\n        }\n        // 빠른 명령 작성 - then 함수와 동일\n        \"modify\"(\"user\" to dynamic { ... }) { // 동적 인수를 요청합니다.\n            \"name\"(\"newName\" to string()) {\n                executes { context -\u003e\n                    val user: User by context\n                    val newName: String = it[\"newName\"]\n                    setUserName(user, newName)\n                }\n            }\n            \"tag\"(\"newTag\" to string()) {\n                executes {\n                    //함수 인수에 의한 타입 추론\n                    setUserTag(it[\"user\"], it[\"newTag\"])\n                }\n            }\n        }\n    }\n}\n```\n\n분기문을 직접 작성하지 않고도 명령어를 실행 할 수 있는 코드가 완성되었습니다.\n\n사용자가 명령문을 알맞게 작성하면 *executes*블록 내의 코드가 실행됩니다.\n\n---\n\n### Gradle\n\n```kotlin\nrepositories {\n    mavenCentral()\n}\n```\n\n```kotlin\ndependencies {\n    implementation(\"io.github.monun:kommand-api:\u003cversion\u003e\")\n}\n```\n\n### plugin.yml\n\n```yaml\nname: ...\nversion: ...\nmain: ...\nlibraries:\n  - io.github.monun:kommand-core:\u003cversion\u003e\n```\n\n---\n\n### NOTE\n\n* 라이센스는 GPL-3.0이며 변경 혹은 삭제를 금합니다.\n\n### Contributors\n\n* **[patrick-choe](https://github.com/patrick-choe)**\n    * maven central 배포\n    * 기본 Argument 일부 작성\n    * mojang map 이용 환경 구축\n* **[Jhyub](https://github.com/Jhyub)**\n    * DslMarker를 이용한 DSL 규칙 향상\n* **[pikokr](https://github.com/pikokr)**\n    * 1.18.2 지원\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonun%2Fkommand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonun%2Fkommand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonun%2Fkommand/lists"}