Jump to content
Phylodome

Add Multiple Positional Args to Query Functionality

Recommended Posts

Proposed Feature:

For a given keyword query, add the ability to take space-delimited positional arguments, e.g "query 1 2 3"

 

Rationale:

In multiple cases, most notably with urls, I'd like to be able to provide multiple arguments such that I could construct a url such as:

 

app.ourdomain.com/tool/{query1}/path/{query2}/id/{query3}

 

Possible Implementation:

Accept multiple space-delimited arguments after a keyword that are accessible by positional reference in the url/piped-to script etc.  Ideally this would work with both required and optional argument types.

Share this post


Link to post
Share on other sites

Proposed Feature:

For a given keyword query, add the ability to take space-delimited positional arguments, e.g "query 1 2 3"

 

Rationale:

In multiple cases, most notably with urls, I'd like to be able to provide multiple arguments such that I could construct a url such as:

 

app.ourdomain.com/tool/{query1}/path/{query2}/id/{query3}

 

Possible Implementation:

Accept multiple space-delimited arguments after a keyword that are accessible by positional reference in the url/piped-to script etc.  Ideally this would work with both required and optional argument types.

 

I'm not sure what Andrew's exact future plans are for things of this nature but I would like to also point out that things like this could technically be done now with workflows. For workflow creators, depending on what you were creating, this feature could be good, it could also cause major headaches unless {query} could somehow be turned into an array that you could iterate over. Since it's not an actually variable but more of a placeholder, that would be tough.

 

As mentioned, you can do this with scripts in workflows now though.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...