Skip to content

Commit 2150914

Browse files
author
John Smith III
committed
Added: System name for notifications
1 parent d0614a1 commit 2150914

File tree

7 files changed

+341
-190
lines changed

7 files changed

+341
-190
lines changed

.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"name": "Bash-Debug (simplest configuration)",
1111
"program": "${file}",
1212
"argsString": " -v -L DEBUG"
13+
// "argsString": " --status"
1314
// "argsString": "-L TRACE" // test invalid log level
1415
// "argsString": "--clean" // test clean
1516
}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"osascript",
1111
"pacman",
1212
"pkill",
13+
"realpath",
1314
"subshell"
1415
]
1516
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- none
1111

12+
## [1.2.0] - 2024-11-26
13+
14+
### Added
15+
16+
- System name displayed in notifications using local host name
17+
- System name configurable using `--system-name` `-n`
18+
19+
### Changed
20+
21+
- Cross platform CACHE_DIR path generation using system temporary path
22+
- Cross platform CONFIG_FILE path generation using system configuration path
23+
- Additional code reorganization
24+
25+
### Fixed
26+
27+
- Cross platform paths are normalization
28+
1229
## [1.1.0] - 2024-11-23
1330

1431
### Added

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ LOG_FILE="/tmp/noirnet_cache/noirnet.log"
296296
CONFIG_FILE="$HOME/.config/noirnet.conf"
297297
CHECK_INTERVAL=5
298298
TIMEOUT=5
299+
SYSTEM_NAME="My System"
299300
PUSHOVER_NOTIFICATION=false
300301
PUSHOVER_API_TOKEN=""
301302
PUSHOVER_USER_KEY=""
@@ -328,6 +329,7 @@ DNS_TEST_DOMAIN="example.com"
328329

329330
### Notification Options
330331

332+
- `-n, --system-name`: Name of the system running the script.
331333
- `-p, --pushover`: Send Pushover notifications.
332334
- `-a, --api-token <token>`: Specify the API token for Pushover notifications.
333335
- `-u, --user-key <key>`: Specify the user key for Pushover notifications.
@@ -381,6 +383,7 @@ Ensure you have the following installed on your system:
381383
LOG_FILE="./test_noirnet.log"
382384
CHECK_INTERVAL=1
383385
TIMEOUT=5
386+
SYSTEM_NAME="test system"
384387
PUSHOVER=false
385388
DESKTOP=false
386389
VERBOSE=true

0 commit comments

Comments
 (0)