Details

    • Type: Improvement
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0
    • Component/s: None
    • Labels:
      None

      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

      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.

      # 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"
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bradwood Brad Wood
                Reporter:
                bradwood Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: