mirror of
https://github.com/fosrl/newt.git
synced 2026-03-08 23:03:03 -05:00
[PR #19] [MERGED] Add updown script capabilities #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/newt/pull/19
Author: @oschwartz10612
Created: 3/9/2025
Status: ✅ Merged
Merged: 3/9/2025
Merged by: @oschwartz10612
Base:
dev← Head:updown📝 Commits (2)
6f1d475Add updown script capabilities437d8b6Add documentation for updown📊 Changes
3 files changed (+175 additions, -14 deletions)
View changed files
📝
README.md(+14 -1)📝
main.go(+84 -13)➕
updown.py(+77 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Add ability to use an "updown" script. Example:
--updown "/home/owen/.local/bin/python3 /home/owen/fossorial/test.py"It will get called with args when a target is added:
INFO: 2025/03/08 18:35:29 Executing updown script: /home/owen/.local/bin/python3 /home/owen/fossorial/test.py add tcp localhost:8556🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.