Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Dynamic script config from code #2093

Open
P6g9YHK6 opened this issue Dec 3, 2024 · 0 comments
Open

[Feature request] Dynamic script config from code #2093

P6g9YHK6 opened this issue Dec 3, 2024 · 0 comments

Comments

@P6g9YHK6
Copy link

P6g9YHK6 commented Dec 3, 2024

Is your feature request related to a problem? Please describe.
currently updating all the script base information from GIT is a annoying due to how the api works for uploading code

Describe the solution you'd like
a way to overwrite by default any value from the scripts settings by flaging them in the code directly
when the value for exemple "Name: XXX" is set in the script trmm would take this value for the script name by default and ignore any changes made on the UI.

the exemple block could be added in any language in comment block as ps,py,nu,sh,bat all can have either comment block or goto skip

this would also be usefull if one day people start sharing their own repo

Describe alternatives you've considered
niet

Additional context
I have also added a draft for a new way of handeling community scripts submission that would help automate/speedup/standardize code review but this is not required for this request
image

<#
===================== TRMM Scripts Marker =====================

    Name: Test Script
    Description: Random stuff just for testing
    Platforms: 
        Windows
    Category: Utility
    Arguments:
        -Flag1
        -Flag2 Value
    Environment Variables:
        EnvVar1=test1
        EnvVar2=test
    Timeout: 90
    Run as user: 0
    Syntax: `.\CheckEnvAndFlags.ps1 -Flag1 -Flag2`
===================== Community script review =====================
    State of Dev: 
        Production ready
        Documentation needed
        Testing needed
        Draft
        wtf is even this code?
        their is no way that this piece of shit was not puked out by a drunk llm
        we don't read brainfuck
    Prod Ready: Yes
    Documentation Clean and script understandable: Yes
    Security Scanned: Yes
    Model for Synopsis followed: Yes
    Tested on Platform:
        Windows PowerShell 5.1 on Windows 10 (64-bit)
        PowerShell 7.3.6 on Ubuntu 22.04 LTS
===================== End TRMM Scripts Marker =====================
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant