{"id":22981075,"url":"https://github.com/rubyworks/cli_base","last_synced_at":"2025-10-16T06:47:47.059Z","repository":{"id":1094098,"uuid":"950136","full_name":"rubyworks/cli_base","owner":"rubyworks","description":"Killer Commandlines","archived":false,"fork":false,"pushed_at":"2011-11-11T14:51:56.000Z","size":1380,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T09:45:14.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyworks.github.com/cli_base","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"iand/go","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.rdoc","changelog":"HISTORY.rdoc","contributing":null,"funding":null,"license":"COPYING.rdoc","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-30T02:29:26.000Z","updated_at":"2012-12-15T06:43:02.000Z","dependencies_parsed_at":"2022-07-06T07:33:56.587Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/cli_base","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rubyworks/cli_base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fcli_base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fcli_base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fcli_base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fcli_base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/cli_base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fcli_base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279163638,"owners_count":26117497,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"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-12-15T01:46:53.193Z","updated_at":"2025-10-16T06:47:47.001Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","readme":"= CLI::Base\n\n{Website}[http://rubyworks.github.com/cli_base] |\n{Source Code}[http://github.com/rubyworrks/cli_base] |\n{Report Issue}[http://github.com/rubyworrks/cli_base/features] |\n{#rubyworks}[irc://irc.freenode.org/rubyworks]\n\n{\u003cimg src=\"http://travis-ci.org/rubyworks/cli_base.png\" /\u003e}[http://travis-ci.org/rubyworks/cli_base]\n\n\n== DESCRIPTION\n\nCLI::Base is a very striaght-forward CLI framework for Ruby. CLI::Base is\na *COM* Command-to-Object Mapping library. A command line tool can be defined\nusing nothing more than Ruby's own standard syntax. No special DSL is required. \n\nIMPORTANT! CLI::Base's help feature is Ruby 1.9+ only. It does NOT support\n1.8.7 or older.\n\n\n== SYNOPSIS\n\nUsing CLI::Base is straight-forward. Simply subclass the `CLI::Base` base\nclass and add methods to handle command-line options. Writer methods \n(those ending in '=') coorepsond to an option and a query method (ending in '?')\nmarks an option a flag. For example, here is a simple commandline tool to run\na Ruby script.\n\n    require 'cli/base'\n\n    class RunCLI \u003c CLI::Base\n      # Require LIBRARY before executing your script.\n      def require=(lib)\n        require lib\n      end\n      alias :r= :require=\n\n      # Include PATH in $LOAD_PATH.\n      def include=(path)\n        $:.unshift path\n      end\n      alias :I= :incude\n\n      # Run in DEBUG mode.\n      def debug?\n        $DEBUG = true\n      end\n\n      # Show this message.\n      def help?\n        puts self\n        exit\n      end\n      alias :h? :help?\n\n      # Run the command.\n      def main(script)\n        load(script)\n      end\n    end\n\nFor a more detail example see EXAMPLE.md.\n\n\n== COPYRIGHTS\n\nCopyright (c) 2009 Rubyworks.\n\nThis program is distributed under the terms of the **BSD-2-Clause** license.\n\nPlease see COPYING.rdoc file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fcli_base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fcli_base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fcli_base/lists"}