Run Snippets with parameters
Suggestion:
It would be nice to be able to runner snippets in the Built-In Server while providing parameters for the snippet to use.
Each snippet should also have a modifiable attribute to define the number of parameters the snippet expects.
Shell Snippet Example Code:
echo $0
echo $1
Actual Results:
When the above snippet is run, it simply prints out full path name of the snippet on 1 line followed by nothing on a second line. Here is the resulting text of my sample snippet:
/Users/username/.cacher/run/PrintParameters.sh
<blank line>
Expected Results:
When the snippet is run in the built-in server, it should first ask for the values to use for all of the parameters. My suggestion is to have a configurable attribute for each snippet to define the number of attributes. Using this number, the built-in server can first ask for the desired number of parameters to provide to the snippet.
Please sign in to leave a comment.
Comments
0 comments