{"id":18085344,"url":"https://github.com/xe/eclier","last_synced_at":"2025-03-29T00:33:30.052Z","repository":{"id":57561028,"uuid":"109495970","full_name":"Xe/eclier","owner":"Xe","description":"A simple subcommand router for programs written in Go with Lua scripting","archived":false,"fork":false,"pushed_at":"2019-06-08T23:05:08.000Z","size":29437,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T14:39:09.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xe.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":"2017-11-04T13:15:08.000Z","updated_at":"2020-12-23T08:03:41.000Z","dependencies_parsed_at":"2022-09-01T12:21:29.614Z","dependency_job_id":null,"html_url":"https://github.com/Xe/eclier","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Feclier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Feclier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Feclier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Feclier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xe","download_url":"https://codeload.github.com/Xe/eclier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122251,"owners_count":20726822,"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":[],"created_at":"2024-10-31T15:10:40.858Z","updated_at":"2025-03-29T00:33:29.771Z","avatar_url":"https://github.com/Xe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eclier\n\nPronounced like eclair\n\nThe core of a command line application allowing for trivial user extension.\n\nEvery command and subcommand is its own `.lua` file that is either shipped as\npart of the built-in cartridge of commands or a plugin that the user installs.\n\nThe core contains the following:\n\n- A module loading system for preparing different commands for use\n- The core subcommand router\n\n## How to write plugins\n\nCreate a new file in the script home named after the plugin subcommand, for\nexample: `scripts/hello.lua`:\n\n```lua\nscript.verb = \"hello\"\nscript.help = \"prints everyone's favorite hello world message\"\nscript.author = \"Xe\" -- put your github username here\nscript.version = \"1.0\"\nscript.usage = \"\"\n\nfunction(run) \n  print \"Hello, world!\"\nend\n```\n\nAnd then run it using the example shell cli:\n\n```console\n~/go/src/github.com/Xe/eclier:master λ go run ./example/main.go hello\nHello, world!\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxe%2Feclier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxe%2Feclier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxe%2Feclier/lists"}