<commit_before>* Check if attr_accessor or attr_reader is better in command.rb
* alias run_successful? to success?
* refactor lib interface
```ruby
#options
  error_detection_on: [:stdout,:stderr,:status,:log_file]
  error_indicators: {
    stdout: %W{ word1 word2 }
    stderr: %W{ word1 word2 }
    log_file: %W{ word1 word2 }
    status: false
  }
  on_error: [:do_nothing, :return_status, :raise_exception ]

#raise_exception with serialized status object
require 'json'
raise ExecuteCommandFailed , JSON.dump status 
```
* Add tests for search command<commit_msg>not status, return code should be considered<commit_after>* Check if attr_accessor or attr_reader is better in command.rb
* alias run_successful? to success?
* refactor lib interface
```ruby
#options
  error_detection_on: [:stdout,:stderr,:return_code,:log_file]
  error_indicators: {
    stdout: %W{ word1 word2 }
    stderr: %W{ word1 word2 }
    log_file: %W{ word1 word2 }
    return_code: [1,2,3,4]
  }
  on_error: [:do_nothing, :return_status, :raise_exception ]

#raise_exception with serialized status object
require 'json'
raise ExecuteCommandFailed , JSON.dump status 
```
* Add tests for search command
{'fraction_non_alphanumeric': 0.09991532599491956, 'fraction_numerical': 0.013547840812870448, 'mean_word_length': 5.061538461538461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2504890', 'n_tokens_mistral': 400, 'n_tokens_neox': 387, 'n_words': 117}