Skip to content

FEATURE: "group": field in runner.json filled by parent folder name in conf/runners/ #699

Open
@ojtimsen

Description

@ojtimsen

Hello,
ScriptServer checks the conf/runners folders for files with extension .json to load them as runner, even if they are placed in sub-folders of conf/runners.. This is a nice "feature" to allow a folder structure inside the "runners" folder to sort the runners into. To explain my current aim, the following example structure:

conf/runners/helpers
conf/runners/helpers/show_groups.json
conf/runners/helpers/show_users.json

In the .json I currently define statically that I want the runners be sorted into the "group": "helpers" but I ask myself, if there is a way to set in the "group": field the foldername of the folder where the .json file is stored in?
If this would be possible, this would allow a very dynamic menu structure simply based on the folder name a .json file of a runner is placed into.

Thank you in advance for reading and again big thanks for this project! toj

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions