<commit_before># Capistrano::Compact::Formatter

Custom formatter for Capistrano 3, with compact output, and opinionated according to my own needs.

I don't like the built-in formatters from sshkit. They're too verbose in debug mode, but too little verbose otherwise. Everytime an error occurred while using `set :debug, :info`, I would find myself changing it back to `:debug` to see the actual error messages.

This custom formatter has no regards for the log level (I don't use it anyway), but prints all commands within a single line, with the command executed and a success flag.
If a command produces output it will be printed below, in red or green, depending wether it comes from stdout or sterr, respectively.

Sample output:

![Sample Output](sample-output.png)

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'capistrano-compact-formatter'
```

Or install it yourself as:

    $ gem install capistrano-compact-formatter

## Usage

And require it in your `Capfile`

```ruby
# Capfile
<commit_msg>Fixes title<commit_after># Capistrano Compact Formatter

Custom formatter for Capistrano 3, with compact output, and opinionated according to my own needs.

I don't like the built-in formatters from sshkit. They're too verbose in debug mode, but too little verbose otherwise. Everytime an error occurred while using `set :debug, :info`, I would find myself changing it back to `:debug` to see the actual error messages.

This custom formatter has no regards for the log level (I don't use it anyway), but prints all commands within a single line, with the command executed and a success flag.
If a command produces output it will be printed below, in red or green, depending wether it comes from stdout or sterr, respectively.

Sample output:

![Sample Output](sample-output.png)

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'capistrano-compact-formatter'
```

Or install it yourself as:

    $ gem install capistrano-compact-formatter

## Usage

And require it in your `Capfile`

```ruby
# Capfile

{'fraction_non_alphanumeric': 0.06686046511627906, 'fraction_numerical': 0.0009689922480620155, 'mean_word_length': 4.64207650273224, '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': '6998477', 'n_tokens_mistral': 580, 'n_tokens_neox': 541, 'n_words': 295}