cmd
Changelog related commands.
Commands invoked by dpteam changelogs
print_changelogs(n_logs=typer.Option(5, '--nlogs', '-n', help='Number of latest logs to show'))
Prints the n last release changelogs for 'dapla-team-cli'.
Source code in dapla_team_cli/changelogs/cmd.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
remove_unnecessary_content(body)
The function divides the input string into a list by splitting on the header's prefix.
Unnecessary headers are removed by comparing each header to a regular expression. The list is then joined and returned as a string.
:param body: A string with log data, divided into different contet by headers. :return: Log data with filtered content.
Source code in dapla_team_cli/changelogs/cmd.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|