<@U06V253M4> just an idea for commandbox it would ...
# box-products
j
@bdw429s just an idea for commandbox it would be cool if the box CLI could be configured to "pass through" some commands to the normal terminal and pipe the responses out, would be super handy for example if any command starting with "git" passed through so I could checkout/change/merge without switching terminals
b
You can do this today with a simple command alias
I already do this for Docker and git commands on my machine
j
sweet, those would be very useful to build in as defaults
Would you be able to share those alias components?
b
I'm not so sure about built in defaults šŸ™‚
What makes sense for you could really screw up someone else
Plus it would negate the ability to add our own namespace of commands into CommandBox starting with
git
or
docker
At the end of the day, it's just letting you type
Copy code
git pull
instead of
Copy code
!git pull
which isn't that big of a deal
Here are my command aliases
Copy code
āÆ config show command.aliases
{
    "docker":"!docker",
    "git":"!git"
}
j
oh wait I can prefix any bash command with
!
to run it directly in box cli??
b
lol, yes
That's a core feature for many years now
The alias is just doing that for you!
j
Never knew that, well that solves all my problems
šŸ‘ 1
b
CommandBox allows for • commands (defined by box) • native OS binaries or builtins • CFML functions like
#now
as an equivialent for
repl now()
šŸ’Æ 1
Or all three as an amazing mashup
Copy code
echo "java -version" | run  | #listToArray `#chr 10` | #arrayFirst | sed 's/java version "(.*)"/\1/'
🤯 1
Bash has nothing on this šŸ˜‰
šŸ‘ 1
šŸ‘šŸ¾ 1
Since all the CFML string, date, array, struct, etc functions can be used as first class citizens of the CLI where you just pipe data into them