cli(aliases): Support aliases for connect and targets in the CLI (#4356)

* cli(aliases): Support aliases for boundary connect and boundary targets CLI
This commit is contained in:
Irena Rindos authored and Todd committed 2024-02-29 15:52:27 -08:00
1 parent 5a17c9cd39
commit ba21e076bb
14 files changed
+541 -36

No files matched your search

@@ -6,3 +6,9 @@ function connect_nc() {
# Note: When this command returns, the session immediately goes into a "canceling" state
echo "foo" | boundary connect -exec nc -target-id $id -- {{boundary.ip}} {{boundary.port}}
}
function connect_alias() {
local alias=$1
# Note: When this command returns, the session immediately goes into a "canceling" state
echo "foo" | boundary connect $alias -exec nc -- {{boundary.ip}} {{boundary.port}}
}