<commit_before># Rspec::Cli

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'rspec-cli'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install rspec-cli

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it ( https://github.com/[my-github-username]/rspec-cli/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>Update documentation<commit_after># Rspec::Cli

This is an extension to rspec to fascilitate cli testing.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'rspec-cli'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install rspec-cli

## Usage

In your rspec config

```ruby
RSpec.configure do |config|
  config.include RSpec::Cli, type: :feature
end
```
or similar.

Now your feature specs will have helper methods
```new_cli_process(%w[echo hi there :D])``` and ```spawn_cli_process(%w[echo hi there :D])```

The first one returns a CliProcess instance that hasn't spawned your command yet.

The second one returns a CliProcess instance that has spawned your command.

The CliProcess instance has some useful methads like ```#read``` to read from it's stdout, ```#write(string)``` to write to it's stdin and ```#status``` to get the process's status.

## Contributing

1. Fork it ( https://github.com/[my-github-username]/rspec-cli/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.11523545706371191, 'fraction_numerical': 0.00554016620498615, 'mean_word_length': 4.174785100286533, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2157785', 'n_tokens_mistral': 592, 'n_tokens_neox': 550, 'n_words': 234}