Comments (5)
This would help, allowing to ask further inputs based on previous inputs provided.
from script-server.
from script-server.
Hi, @yosefy could you describe your use case a little bit more detailed? As for me, "depends on" and "include" have slightly different usages:
- "include" should be used for "reusable" configurations, i.e. when multiple scripts use the same configuration
- "depends on" should be used for dynamic visibility of parameters
I guess the main confusion here, is that script server allows "dynamic include", which is probably has nothing to do with reusability. And actually, in many cases, it causes duplicity, because people have to introduce several "included" files for different parameter values.
I think, my preferred solution here would be to add something like enabled
option for each parameter, which will call some script and depending on the script results, might include the parameter.
It should be more flexible than depends on
, since it will allow to enable a parameter for certain values and even depend on some other conditions (e.g. time of a day 😅)
What do you think?
from script-server.
from script-server.
I'm also interested in showing a parameter only if another parameter is defined.
My use case is some complex scripts can confuse operators so I want to avoid filling a parameter that doesn't apply.
For example I got a script to manage groups so I can add, remove or show members, and I want the Members parameter show only if action is Add or Remove.
I simplified the example just for illustrating, actual script is more complex.
from script-server.
Related Issues (20)
- Executing an ansible playbook with user + password requires the parameter "same_arg_param" HOT 2
- regex for allowed_users? HOT 1
- Need help with nginx config HOT 5
- How can i block the user input when running a script? HOT 2
- Error trying to use 'requires_terminal' when running as a systemd daemon HOT 3
- Hide some options for non-admin users HOT 1
- How do you use this to run docker commands? HOT 7
- Feature request: support clean shutdown also on SIGTERM HOT 2
- I'm having some issues with deployment HOT 1
- Add a second level/group in side panel to allow for more organized script grouping HOT 1
- feature(auth): Azure AD OAuth HOT 2
- Feature: GUI edit runners in subdirs of /conf/runners/<directory>/script.json
- Kubernetes ingress/nginx example
- 拒绝执行,这还需改哪里的设置? HOT 1
- Cant SSH from script HOT 2
- Provide config option for ldaps trusted CA HOT 1
- Question: Disable stop of running script HOT 7
- Is that anyway to add env variable into server_file file_dir? HOT 2
- admin users can't see runners HOT 2
- FEATURE: read group members from external file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from script-server.