{"id":18940084,"url":"https://github.com/gw31415/bots","last_synced_at":"2025-04-15T19:31:05.473Z","repository":{"id":57538735,"uuid":"282215372","full_name":"gw31415/bots","owner":"gw31415","description":"Universal bot I/O using proto","archived":true,"fork":false,"pushed_at":"2021-01-22T15:24:15.000Z","size":169,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T06:02:16.939Z","etag":null,"topics":["bot","proto"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gw31415.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}},"created_at":"2020-07-24T12:33:47.000Z","updated_at":"2023-10-31T07:43:23.000Z","dependencies_parsed_at":"2022-09-19T07:30:41.690Z","dependency_job_id":null,"html_url":"https://github.com/gw31415/bots","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fbots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fbots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fbots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fbots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gw31415","download_url":"https://codeload.github.com/gw31415/bots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249138677,"owners_count":21218926,"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":["bot","proto"],"created_at":"2024-11-08T12:20:23.951Z","updated_at":"2025-04-15T19:31:05.167Z","avatar_url":"https://github.com/gw31415.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bots\n## コンセプト\n* プラットフォームによらないコマンドハンドラ\n* 開発言語によらず開発できるコマンド群\n* コマンドハンドラ毎に設定できる出力デザイン\n* 集団および分散開発のしやすさ\n* 他者の開発したコマンドの導入のしやすさ\n\n## 仕様\n### コマンドハンドラ\n1. あるただ一つの特定のディレクトリを読みこむ. それを読みこみディレクトリとする.\n2. 読みこみディレクトリ直下に読みこまれる全てのコマンドが置かれる.\n3. 読みこみディレクトリにはコマンドの他のファイルを配置しない.\n4. ある特定のコマンドを呼びだす操作は, 引数なしで呼びだすコマンドを実行することによって行なわれる.\n5. ある特定のコマンドのヘルプを呼びだす操作は, ただひとつの引数 `--help` または `-h` で呼びだすコマンドを実行することによって行なわれる.\n6. コマンドのヘルプは, [proto/help.proto](https://github.com/gw31415/bots/blob/master/proto/help.proto) に基づきシリアライズされている.\n7. コマンドへの入力は, コマンドの実行中に標準入力に書きこむ.\n8. コマンドの入力は [proto/cmdin.proto](https://github.com/gw31415/bots/blob/master/proto/cmdin.proto) に基づきシリアライズされている.\n9. コマンドの出力は, コマンドの実行中に標準出力から読みこむ.\n10. コマンドの出力は [proto/cmdout.proto](https://github.com/gw31415/bots/blob/master/proto/cmdout.proto) に基づきシリアライズされている.\n\n### コマンド\n1. 実行ファイル, またはそのシンボリックリンク, またはその実行ファイルの入ったディレクトリとする.\n2. コマンドのファイル名(ディレクトリ名)はコマンド名とする. ディレクトリの場合はディレクトリの直下に最初に起動する実行ファイルを, ファイル名をコマンド名にして配置しておく.\n3. コマンド名の全体は `\\w+` に適合する.\n4. コマンドの通常動作は引数なしで呼びだされると行なわれる.\n5. コマンドのヘルプを呼びだす操作は, ただひとつの引数 `--help` または `-h` で呼びだすコマンドを実行することによって行なわれる.\n6. コマンドのヘルプは, [proto/help.proto](https://github.com/gw31415/bots/blob/master/proto/help.proto) に基づきシリアライズされている.\n7. コマンドへの入力は, コマンドの実行中に標準入力に書きこむ.\n8. コマンドの入力は [proto/cmdin.proto](https://github.com/gw31415/bots/blob/master/proto/cmdin.proto) に基づきシリアライズされている.\n9. コマンドの出力は, コマンドの実行中に標準出力から読みこむ.\n10. コマンドの出力は [proto/cmdout.proto](https://github.com/gw31415/bots/blob/master/proto/cmdout.proto) に基づきシリアライズされている.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw31415%2Fbots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgw31415%2Fbots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw31415%2Fbots/lists"}