mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #657] Dropdown for Variables in scripts #2364
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2364
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @bradhawkins85 on GitHub (Aug 11, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/657
**Is your feature request related to a problem? No
Describe the solution you'd like
In addition to Script Arguments that are freeform it would be good if scripts could also have "fixed" variables where the input needs to be limited to one of a few possible values.
EG: scriptmode the only valid options would be,
-scriptmode install
-scriptmode uninstall
-scriptmode upgrade
Describe alternatives you've considered
Currently specify -scriptmode install as the default argument then if not specified assume a different mode such as upgrade within the script itself. However this does not allow for multiple alternate modes
Additional context
Would make things easier for community scripts where users may be required to read (and remember) to change these values each time they use the script.
Each script could potentially need multiple dropdowns depending on the intended use of the script.
@silversword411 commented on GitHub (Sep 21, 2021):
Partial workaround solution testing in #702