[PR #19] [MERGED] Add updown script capabilities #79

Closed
opened 2025-11-19 07:13:26 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: updown


📝 Commits (2)

  • 6f1d475 Add updown script capabilities
  • 437d8b6 Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/newt/pull/19 **Author:** [@oschwartz10612](https://github.com/oschwartz10612) **Created:** 3/9/2025 **Status:** ✅ Merged **Merged:** 3/9/2025 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `updown` --- ### 📝 Commits (2) - [`6f1d475`](https://github.com/fosrl/newt/commit/6f1d4752f0770a82d43e66fbf1a2bb0ddca59d1f) Add updown script capabilities - [`437d8b6`](https://github.com/fosrl/newt/commit/437d8b67a4e88c5072a6a7ad0d10890e7b1abc72) Add documentation for updown ### 📊 Changes **3 files changed** (+175 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+14 -1) 📝 `main.go` (+84 -13) ➕ `updown.py` (+77 -0) </details> ### 📄 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` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-19 07:13:26 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#79