We're updating the issue view to help you get more done. 

Allow recipe command to accept arbitrary commands directly

Description

The recipe command can read a file for execution, but CommandBox lacks a general purpose command interpreter the same way you can pipe anything into bash from bash. You can sort of do this with

1 2 set cmd_to_exec="package show" echo `${cmd_to_exec}`

but that only works if you know the command ahead of time, or can store it in an env var.

If the input to the recipe isn't a file path, treat as commands and attempt to directly execute them.

1 2 3 4 5 6 7 8 # no backticks needed now recipe ${cmd_to_exec} # As many commands as you want cat myFile.txt | recipe # Doesn't matter how they're passed recipe "version"

Status

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Fix versions

Priority

Major