Skip to content

Commit

Permalink
Release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Aug 16, 2024
1 parent 9cfd20a commit c5568dc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netfuse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from netfuse.main import run # noqa: F401

version = "0.0.5"
version = "0.1.0"
8 changes: 6 additions & 2 deletions netfuse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def center_text(text: str) -> str:


HEADER = center_text("Begin NetFuse")
WARNING1 = center_text("Please do not make any manual changes within this section".upper())
WARNING1 = center_text(
"Please do not make any manual changes within this section".upper()
)
WARNING2 = center_text("Any modifications made here will be overwritten".upper())
FOOTER = center_text("End NetFuse")

Expand Down Expand Up @@ -85,7 +87,9 @@ def dump(dry_run: bool, filepath: str, output: str, module: ModuleType) -> None:
host_entries += f"{line}\n"
host_entries = host_entries.strip()
host_entries += "\n\n" + HEADER + "\n"
host_entries += "\n" + "*" * 83 + "\n" + WARNING1 + "\n" + WARNING2 + "\n" + "*" * 83 + "\n\n"
host_entries += "\n" + "*" * 83 + "\n"
host_entries += WARNING1 + "\n" + WARNING2
host_entries += "\n" + "*" * 83 + "\n\n"
for device in module.attached_devices():
if device.ipv4_address:
host_entries += f"{device.ipv4_address}\t{device.name}\n"
Expand Down
6 changes: 6 additions & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release Notes
=============

v0.1.0 (08/15/2024)
-------------------
- Includes bug fix to avoid duplicate entries in ``hosts`` file
- Generates host entries in a dedicated block
- Improved linting and upgraded dependencies

v0.0.5 (01/24/2024)
-------------------
- Includes module name in logger format
Expand Down

0 comments on commit c5568dc

Please sign in to comment.