Changex.Formatter.Terminal (changex v0.3.0)

Output the formatted changelog to the terminal.

Link to this section Summary

Functions

Take a map of commits in the following format

Link to this section Functions

Link to this function

output(commits, version \\ nil)

Take a map of commits in the following format:

%{
  fix: %{
    scope1: [commit1, commit2],
    scope2: [commit5, commit6]
  }
  feat: %{
    scope1: [commit3, commit4],
    scope2: [commit7, commit8]
  }
}

And output them to the terminal in the following format:

Bug Fixes

 Scope 1
  * commit 1 - hash
  * commit 2 - hash

 Scope 2
  * commit 5 - hash
  * commit 6 - hash

Features

 Scope 1
  * commit 3 - hash
  * commit 4 - hash

 Scope 2
  * commit 7 - hash
  * commit 8 - hash