Skip to content

Commit 4853967

Browse files
committed
Update README, fix SAP#39
1 parent 951e2e5 commit 4853967

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ To install a new version of the plugin, run the following:
1818

1919
```sh
2020
# on Mac arm64
21-
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/latest/download/cf-cli-java-plugin-macos-arm64
21+
cf install-plugin https://github.com/SAP/cf-cli-java-plugin/releases/latest/download/cf-cli-java-plugin-macos-arm64
2222
# on Windows x86
23-
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/latest/download/cf-cli-java-plugin-windows-amd64
23+
cf install-plugin https://github.com/SAP/cf-cli-java-plugin/releases/latest/download/cf-cli-java-plugin-windows-amd64
2424
# on Linux x86
25-
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/latest/download/cf-cli-java-plugin-linux-amd64
25+
cf install-plugin https://github.com/SAP/cf-cli-java-plugin/releases/latest/download/cf-cli-java-plugin-linux-amd64
2626
```
2727

2828
You can verify that the plugin is successfully installed by looking for `java` in the output of `cf plugins`.
@@ -48,11 +48,11 @@ To install a new version of the plugin, run the following:
4848

4949
```sh
5050
# on Mac arm64
51-
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-macos-arm64
51+
cf install-plugin https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-macos-arm64
5252
# on Windows x86
53-
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-windows-amd64
53+
cf install-plugin https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-windows-amd64
5454
# on Linux x86
55-
cf install-plugin -f https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-linux-amd64
55+
cf install-plugin https://github.com/SAP/cf-cli-java-plugin/releases/download/snapshot/cf-cli-java-plugin-linux-amd64
5656
```
5757

5858
### Updating from version 1.x to 2.x

cf_cli_java_plugin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ java_pid() {
458458
459459
# Define a function to list Java processes excluding jcmd-related ones
460460
461+
_ps() {
462+
# implements ps -e -o pid,comm= by traversing the proc file system
463+
}
464+
461465
list_java_processes() {
462466
# Use ps with comm= to find processes where the binary is named exactly "java"
463467
# This excludes processes where "java" is just part of the command arguments

0 commit comments

Comments
 (0)