We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aecf155 + 9f29b8d commit 78cc7adCopy full SHA for 78cc7ad
bin/kubectl-rabbitmq
@@ -10,6 +10,7 @@
10
11
set -euo pipefail
12
13
+PLATFORM="$(uname)"
14
NAMESPACE=""
15
16
instance=""
@@ -164,9 +165,16 @@ manage() {
164
165
MGMT_PORT=15672
166
MGMT_URL="http://localhost:$MGMT_PORT/"
167
fi
168
+
169
+ if [[ "${PLATFORM}" == "Darwin" ]]; then
170
+ OPEN="open"
171
+ else
172
+ OPEN="xdg-open"
173
+ fi
174
175
(
176
sleep 2
- open "$MGMT_URL"
177
+ $OPEN "$MGMT_URL"
178
) &
179
kubectl ${NAMESPACE} port-forward "service/${service}" $MGMT_PORT
180
}
0 commit comments