Skip to content

Commit

Permalink
fix: Only display mermaid live editor URL with -vv
Browse files Browse the repository at this point in the history
  • Loading branch information
haidaraM committed Apr 23, 2024
1 parent 41c9128 commit 86bbebd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# 2.2.1 (2024-04-24)

fix: Only display mermaid live editor URL with the flag -vv

# 2.2.0 (2024-04-21)

## What's Changed

* feat: Add support for hiding empty plays and plays without roles https://github.com/haidaraM/ansible-playbook-grapher/pull/177.
* Add a new flag `--hide-empty-plays` to not show in the graph the plays that end up being empty after applying the filters.
* Add a new flag `--hide-plays-without-roles` to not show in the graph the plays that end up with no roles. Only roles at the play level and include_role as tasks are considered (no import_role).
* Add support for viewing mermaid graphs in the browse with `--view --renderer mermaid-flowchart` in https://github.com/haidaraM/ansible-playbook-grapher/pull/181
* Add support for viewing mermaid graphs in the browser with `--view --renderer mermaid-flowchart` in https://github.com/haidaraM/ansible-playbook-grapher/pull/181
* refactor(internal): `PlaybookNode.plays` is now a method instead of property.
* refactor(internal): Do not access the `_compositions` in the child classes: use method from the CompositeNode.
* chore(deps): update black requirement from ~=24.1 to ~=24.2 by @dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/175
Expand Down
2 changes: 1 addition & 1 deletion ansibleplaybookgrapher/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "2.2.0"
__version__ = "2.2.1"
__prog__ = "ansible-playbook-grapher"
2 changes: 1 addition & 1 deletion ansibleplaybookgrapher/renderer/mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def view(mermaid_code: str):
url_path = f'pako:{urlsafe_b64encode(compressed).decode("utf-8")}'
url = f"https://mermaid.live/edit#{url_path}"

display.display(f"Mermaid live editor URL: {url}")
display.vvv(f"Mermaid live editor URL: {url}")

# Display url using the default browser in a new tag
webbrowser.open(url, new=2)
Expand Down

0 comments on commit 86bbebd

Please sign in to comment.