├── .editorconfig ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ ├── FEATURE_REQUEST.md │ └── config.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── ci.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── appveyor.yml ├── benchmarks └── memory.rb ├── bin ├── console └── setup ├── examples ├── bash.rb ├── basic.rb ├── buffer.rb ├── cli ├── env.rb ├── logger.rb ├── output.rb ├── pty.rb ├── redirect_stderr.rb ├── redirect_stdin.rb ├── redirect_stdout.rb ├── stdin_input.rb ├── threaded.rb ├── timeout.rb ├── timeout_input.rb └── wait.rb ├── lib ├── tty-command.rb └── tty │ ├── command.rb │ └── command │ ├── child_process.rb │ ├── cmd.rb │ ├── dry_runner.rb │ ├── exit_error.rb │ ├── printers │ ├── abstract.rb │ ├── null.rb │ ├── pretty.rb │ ├── progress.rb │ └── quiet.rb │ ├── process_runner.rb │ ├── result.rb │ ├── truncator.rb │ └── version.rb ├── spec ├── fixtures │ ├── cli │ ├── color │ ├── infinite_input │ ├── infinite_no_output │ ├── infinite_output │ ├── non_zero_exit │ ├── phased_output │ ├── stream │ └── zero_exit ├── spec_helper.rb └── unit │ ├── binmode_spec.rb │ ├── cmd_spec.rb │ ├── dry_run_spec.rb │ ├── exit_error_spec.rb │ ├── input_spec.rb │ ├── output_spec.rb │ ├── printer_spec.rb │ ├── printers │ ├── custom_spec.rb │ ├── null_spec.rb │ ├── pretty_spec.rb │ ├── progress_spec.rb │ └── quiet_spec.rb │ ├── pty_spec.rb │ ├── redirect_spec.rb │ ├── result_spec.rb │ ├── ruby_spec.rb │ ├── run_spec.rb │ ├── test_spec.rb │ ├── timeout_spec.rb │ └── truncator_spec.rb ├── tasks ├── console.rake ├── coverage.rake └── spec.rake └── tty-command.gemspec /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: piotrmurach 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.github/ISSUE_TEMPLATE/BUG_REPORT.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.rspec -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/Rakefile -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/appveyor.yml -------------------------------------------------------------------------------- /benchmarks/memory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/benchmarks/memory.rb -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/bin/setup -------------------------------------------------------------------------------- /examples/bash.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/bash.rb -------------------------------------------------------------------------------- /examples/basic.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/basic.rb -------------------------------------------------------------------------------- /examples/buffer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/buffer.rb -------------------------------------------------------------------------------- /examples/cli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/cli -------------------------------------------------------------------------------- /examples/env.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/env.rb -------------------------------------------------------------------------------- /examples/logger.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/logger.rb -------------------------------------------------------------------------------- /examples/output.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/output.rb -------------------------------------------------------------------------------- /examples/pty.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/pty.rb -------------------------------------------------------------------------------- /examples/redirect_stderr.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/redirect_stderr.rb -------------------------------------------------------------------------------- /examples/redirect_stdin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/redirect_stdin.rb -------------------------------------------------------------------------------- /examples/redirect_stdout.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/redirect_stdout.rb -------------------------------------------------------------------------------- /examples/stdin_input.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/stdin_input.rb -------------------------------------------------------------------------------- /examples/threaded.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/threaded.rb -------------------------------------------------------------------------------- /examples/timeout.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/timeout.rb -------------------------------------------------------------------------------- /examples/timeout_input.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/timeout_input.rb -------------------------------------------------------------------------------- /examples/wait.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/examples/wait.rb -------------------------------------------------------------------------------- /lib/tty-command.rb: -------------------------------------------------------------------------------- 1 | require_relative "tty/command" 2 | -------------------------------------------------------------------------------- /lib/tty/command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command.rb -------------------------------------------------------------------------------- /lib/tty/command/child_process.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/child_process.rb -------------------------------------------------------------------------------- /lib/tty/command/cmd.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/cmd.rb -------------------------------------------------------------------------------- /lib/tty/command/dry_runner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/dry_runner.rb -------------------------------------------------------------------------------- /lib/tty/command/exit_error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/exit_error.rb -------------------------------------------------------------------------------- /lib/tty/command/printers/abstract.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/printers/abstract.rb -------------------------------------------------------------------------------- /lib/tty/command/printers/null.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/printers/null.rb -------------------------------------------------------------------------------- /lib/tty/command/printers/pretty.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/printers/pretty.rb -------------------------------------------------------------------------------- /lib/tty/command/printers/progress.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/printers/progress.rb -------------------------------------------------------------------------------- /lib/tty/command/printers/quiet.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/printers/quiet.rb -------------------------------------------------------------------------------- /lib/tty/command/process_runner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/process_runner.rb -------------------------------------------------------------------------------- /lib/tty/command/result.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/result.rb -------------------------------------------------------------------------------- /lib/tty/command/truncator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/truncator.rb -------------------------------------------------------------------------------- /lib/tty/command/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/lib/tty/command/version.rb -------------------------------------------------------------------------------- /spec/fixtures/cli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/cli -------------------------------------------------------------------------------- /spec/fixtures/color: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/color -------------------------------------------------------------------------------- /spec/fixtures/infinite_input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/infinite_input -------------------------------------------------------------------------------- /spec/fixtures/infinite_no_output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/infinite_no_output -------------------------------------------------------------------------------- /spec/fixtures/infinite_output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/infinite_output -------------------------------------------------------------------------------- /spec/fixtures/non_zero_exit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/non_zero_exit -------------------------------------------------------------------------------- /spec/fixtures/phased_output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/phased_output -------------------------------------------------------------------------------- /spec/fixtures/stream: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/stream -------------------------------------------------------------------------------- /spec/fixtures/zero_exit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/fixtures/zero_exit -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/unit/binmode_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/binmode_spec.rb -------------------------------------------------------------------------------- /spec/unit/cmd_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/cmd_spec.rb -------------------------------------------------------------------------------- /spec/unit/dry_run_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/dry_run_spec.rb -------------------------------------------------------------------------------- /spec/unit/exit_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/exit_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/input_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/input_spec.rb -------------------------------------------------------------------------------- /spec/unit/output_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/output_spec.rb -------------------------------------------------------------------------------- /spec/unit/printer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/printer_spec.rb -------------------------------------------------------------------------------- /spec/unit/printers/custom_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/printers/custom_spec.rb -------------------------------------------------------------------------------- /spec/unit/printers/null_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/printers/null_spec.rb -------------------------------------------------------------------------------- /spec/unit/printers/pretty_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/printers/pretty_spec.rb -------------------------------------------------------------------------------- /spec/unit/printers/progress_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/printers/progress_spec.rb -------------------------------------------------------------------------------- /spec/unit/printers/quiet_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/printers/quiet_spec.rb -------------------------------------------------------------------------------- /spec/unit/pty_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/pty_spec.rb -------------------------------------------------------------------------------- /spec/unit/redirect_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/redirect_spec.rb -------------------------------------------------------------------------------- /spec/unit/result_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/result_spec.rb -------------------------------------------------------------------------------- /spec/unit/ruby_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/ruby_spec.rb -------------------------------------------------------------------------------- /spec/unit/run_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/run_spec.rb -------------------------------------------------------------------------------- /spec/unit/test_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/test_spec.rb -------------------------------------------------------------------------------- /spec/unit/timeout_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/timeout_spec.rb -------------------------------------------------------------------------------- /spec/unit/truncator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/spec/unit/truncator_spec.rb -------------------------------------------------------------------------------- /tasks/console.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/tasks/console.rake -------------------------------------------------------------------------------- /tasks/coverage.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/tasks/coverage.rake -------------------------------------------------------------------------------- /tasks/spec.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/tasks/spec.rake -------------------------------------------------------------------------------- /tty-command.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/tty-command/HEAD/tty-command.gemspec --------------------------------------------------------------------------------