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

Divide scripts in groups #243

Closed
olm52 opened this issue Dec 3, 2019 · 10 comments
Closed

Divide scripts in groups #243

olm52 opened this issue Dec 3, 2019 · 10 comments

Comments

@olm52
Copy link

olm52 commented Dec 3, 2019

I have many scripts that I would like to use with script-server
Ideal would be to make different groups with specific titles

Is this possible?

@bugy
Copy link
Owner

bugy commented Dec 4, 2019

Hi @hifi25nl,
unfortunately, this is not possible. I was thinking about this feature since the very beginning of the project, but I had never really needed it for myself :)

I'll keep this issue open as a feature request

@bugy bugy added the feature label Dec 4, 2019
@muzzol
Copy link

muzzol commented Dec 4, 2019

as a simple workaround i always put a prefix to titles so you can filter easily:

MAIL - List users
MAIL - Add alias
WEBPRE - Restart Apache
WEBPRO - Restart Apache
LDAP - Check password

and so on...

@olm52
Copy link
Author

olm52 commented Dec 4, 2019

Yes, I m doing it now this way:

11 MAIN name1
12 MAIN name2

21 SYSTEM name1
22 SYSTEM name2
23 SYSTEM name3

etc.

@muzzol
Copy link

muzzol commented Dec 4, 2019

@bugy can I suggest detecting automatically subsections?

some dinamic sites do it that way.
you can use a delimiter in name to define a section.

for example if name is WEB: it automatically creates a section called WEB and put that item inside.

@bugy
Copy link
Owner

bugy commented Dec 4, 2019

Hi @muzzol, thanks for the idea, I like it!
But I think this should be optional somehow. And also, if you check the example from @hifi25nl, this won't work :(

@olm52
Copy link
Author

olm52 commented Dec 8, 2019

Working with scripts, I discovered that if I change the script name link after creation the corresponding file name in /conf directory is not changed.

I fear that this could lead to unpredictable results.

@bugy
Copy link
Owner

bugy commented Mar 22, 2020

Done
You can use "group": "groupName" in a script config now

@deelerke
Copy link

YES !!!! perfect !! PERFECT !!!! thank you

@antonellocaroli
Copy link

perfect!!!!

Can you explain how this works?

@antonellocaroli
Copy link

Okay, got it.

it works

antonellocaroli pushed a commit to antonellocaroli/script-server that referenced this issue Aug 1, 2020
@bugy bugy closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants