This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a commit to branch local-config
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
The following commit(s) were added to refs/heads/local-config by this push:
new f5eee5a util apihost
f5eee5a is described below
commit f5eee5a787072961cbf15d61e0cf16330f9ff4f1
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sat Nov 8 10:27:59 2025 +0000
util apihost
---
util/docopts.md | 2 ++
util/opsfile.yml | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/util/docopts.md b/util/docopts.md
index 3173608..72d1107 100644
--- a/util/docopts.md
+++ b/util/docopts.md
@@ -24,6 +24,7 @@ OpenServerless Utilities
```text
Usage:
+ util apihost
util system
util update-cli
util check-operator-version <version>
@@ -48,6 +49,7 @@ Usage:
## Commands
```
+- apihost current apihost
- system system info (<os>-<arch> in Go format)
- update-cli update the cli downloading the binary
- check-operator-version check if you need to update the operator
diff --git a/util/opsfile.yml b/util/opsfile.yml
index 0358cc0..28e35c7 100644
--- a/util/opsfile.yml
+++ b/util/opsfile.yml
@@ -47,6 +47,12 @@ tasks:
cmds:
- echo "{{OS}}-{{ARCH}}"
+ apihost:
+ desc: current apihost``
+ silent: true
+ cmds:
+ - ops -wsk property get | awk '/whisk API host/{print $4}'
+
update-cli:
desc: update CLI
silent: true