├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug-report.md │ └── config.yml ├── SUPPORT.md └── workflows │ ├── ci.yml │ ├── repo-sync-preview.yml │ └── rubocop.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Gemfile ├── Gemfile.devtools ├── LICENSE ├── README.md ├── Rakefile ├── bin ├── .gitkeep ├── console └── setup ├── docsite └── source │ ├── arguments.html.md │ ├── callbacks.html.md │ ├── commands-with-subcommands-and-params.html.md │ ├── commands.html.md │ ├── index.html.md │ ├── options.html.md │ ├── subcommands.html.md │ └── variadic-arguments.html.md ├── dry-cli.gemspec ├── lib └── dry │ ├── cli.rb │ └── cli │ ├── banner.rb │ ├── command.rb │ ├── command_registry.rb │ ├── errors.rb │ ├── inflector.rb │ ├── inline.rb │ ├── option.rb │ ├── parser.rb │ ├── program_name.rb │ ├── registry.rb │ ├── spell_checker.rb │ ├── usage.rb │ └── version.rb ├── repo-sync.yml └── spec ├── integration ├── commands_spec.rb ├── inherited_commands_spec.rb ├── inline_spec.rb ├── processes_errors_spec.rb ├── rendering_spec.rb ├── single_command_spec.rb ├── spell_checker_spec.rb ├── subcommands_spec.rb └── third_party_gems_spec.rb ├── spec_helper.rb ├── support ├── coverage.rb ├── files.rb ├── fixtures │ ├── based │ ├── baz │ ├── baz_command.rb │ ├── foo │ ├── infinites │ ├── inline │ ├── registry.rb │ ├── shared_commands.rb │ ├── with_block.rb │ ├── with_registry.rb │ └── with_zero_arity_block.rb ├── helpers.rb ├── path.rb ├── rspec.rb ├── shared_examples │ ├── commands.rb │ ├── inherited_commands.rb │ ├── rendering.rb │ ├── subcommands.rb │ └── third_party_gems.rb └── warnings.rb └── unit └── dry └── cli ├── cli_spec.rb ├── inflector_spec.rb └── registry_spec.rb /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: hanami 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.github/ISSUE_TEMPLATE/bug-report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.github/SUPPORT.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/repo-sync-preview.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.github/workflows/repo-sync-preview.yml -------------------------------------------------------------------------------- /.github/workflows/rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.github/workflows/rubocop.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.rspec -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.devtools: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/Gemfile.devtools -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/bin/setup -------------------------------------------------------------------------------- /docsite/source/arguments.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/arguments.html.md -------------------------------------------------------------------------------- /docsite/source/callbacks.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/callbacks.html.md -------------------------------------------------------------------------------- /docsite/source/commands-with-subcommands-and-params.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/commands-with-subcommands-and-params.html.md -------------------------------------------------------------------------------- /docsite/source/commands.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/commands.html.md -------------------------------------------------------------------------------- /docsite/source/index.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/index.html.md -------------------------------------------------------------------------------- /docsite/source/options.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/options.html.md -------------------------------------------------------------------------------- /docsite/source/subcommands.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/subcommands.html.md -------------------------------------------------------------------------------- /docsite/source/variadic-arguments.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/docsite/source/variadic-arguments.html.md -------------------------------------------------------------------------------- /dry-cli.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/dry-cli.gemspec -------------------------------------------------------------------------------- /lib/dry/cli.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli.rb -------------------------------------------------------------------------------- /lib/dry/cli/banner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/banner.rb -------------------------------------------------------------------------------- /lib/dry/cli/command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/command.rb -------------------------------------------------------------------------------- /lib/dry/cli/command_registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/command_registry.rb -------------------------------------------------------------------------------- /lib/dry/cli/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/errors.rb -------------------------------------------------------------------------------- /lib/dry/cli/inflector.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/inflector.rb -------------------------------------------------------------------------------- /lib/dry/cli/inline.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/inline.rb -------------------------------------------------------------------------------- /lib/dry/cli/option.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/option.rb -------------------------------------------------------------------------------- /lib/dry/cli/parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/parser.rb -------------------------------------------------------------------------------- /lib/dry/cli/program_name.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/program_name.rb -------------------------------------------------------------------------------- /lib/dry/cli/registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/registry.rb -------------------------------------------------------------------------------- /lib/dry/cli/spell_checker.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/spell_checker.rb -------------------------------------------------------------------------------- /lib/dry/cli/usage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/usage.rb -------------------------------------------------------------------------------- /lib/dry/cli/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/lib/dry/cli/version.rb -------------------------------------------------------------------------------- /repo-sync.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/repo-sync.yml -------------------------------------------------------------------------------- /spec/integration/commands_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/commands_spec.rb -------------------------------------------------------------------------------- /spec/integration/inherited_commands_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/inherited_commands_spec.rb -------------------------------------------------------------------------------- /spec/integration/inline_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/inline_spec.rb -------------------------------------------------------------------------------- /spec/integration/processes_errors_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/processes_errors_spec.rb -------------------------------------------------------------------------------- /spec/integration/rendering_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/rendering_spec.rb -------------------------------------------------------------------------------- /spec/integration/single_command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/single_command_spec.rb -------------------------------------------------------------------------------- /spec/integration/spell_checker_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/spell_checker_spec.rb -------------------------------------------------------------------------------- /spec/integration/subcommands_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/subcommands_spec.rb -------------------------------------------------------------------------------- /spec/integration/third_party_gems_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/integration/third_party_gems_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/coverage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/coverage.rb -------------------------------------------------------------------------------- /spec/support/files.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/files.rb -------------------------------------------------------------------------------- /spec/support/fixtures/based: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/based -------------------------------------------------------------------------------- /spec/support/fixtures/baz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/baz -------------------------------------------------------------------------------- /spec/support/fixtures/baz_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/baz_command.rb -------------------------------------------------------------------------------- /spec/support/fixtures/foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/foo -------------------------------------------------------------------------------- /spec/support/fixtures/infinites: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/infinites -------------------------------------------------------------------------------- /spec/support/fixtures/inline: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/inline -------------------------------------------------------------------------------- /spec/support/fixtures/registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/registry.rb -------------------------------------------------------------------------------- /spec/support/fixtures/shared_commands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/shared_commands.rb -------------------------------------------------------------------------------- /spec/support/fixtures/with_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/with_block.rb -------------------------------------------------------------------------------- /spec/support/fixtures/with_registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/with_registry.rb -------------------------------------------------------------------------------- /spec/support/fixtures/with_zero_arity_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/fixtures/with_zero_arity_block.rb -------------------------------------------------------------------------------- /spec/support/helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/helpers.rb -------------------------------------------------------------------------------- /spec/support/path.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/path.rb -------------------------------------------------------------------------------- /spec/support/rspec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/rspec.rb -------------------------------------------------------------------------------- /spec/support/shared_examples/commands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/shared_examples/commands.rb -------------------------------------------------------------------------------- /spec/support/shared_examples/inherited_commands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/shared_examples/inherited_commands.rb -------------------------------------------------------------------------------- /spec/support/shared_examples/rendering.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/shared_examples/rendering.rb -------------------------------------------------------------------------------- /spec/support/shared_examples/subcommands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/shared_examples/subcommands.rb -------------------------------------------------------------------------------- /spec/support/shared_examples/third_party_gems.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/shared_examples/third_party_gems.rb -------------------------------------------------------------------------------- /spec/support/warnings.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/support/warnings.rb -------------------------------------------------------------------------------- /spec/unit/dry/cli/cli_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/unit/dry/cli/cli_spec.rb -------------------------------------------------------------------------------- /spec/unit/dry/cli/inflector_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/unit/dry/cli/inflector_spec.rb -------------------------------------------------------------------------------- /spec/unit/dry/cli/registry_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-cli/HEAD/spec/unit/dry/cli/registry_spec.rb --------------------------------------------------------------------------------