diff --git a/documentation/cli.asciidoc b/documentation/cli.asciidoc index c50bf6a39..2f63e8329 100644 --- a/documentation/cli.asciidoc +++ b/documentation/cli.asciidoc @@ -57,6 +57,7 @@ The following commandlets are currently available: * link:docker.asciidoc[docker] * link:dotnet.asciidoc[dotnet] * link:eclipse.asciidoc[eclipse] +* link:gcviewer.asciidoc[gradle] * link:graalvm.asciidoc[graalvm] * link:gradle.asciidoc[gradle] * link:helm.asciidoc[helm] diff --git a/documentation/devonfw-ide-usage.asciidoc b/documentation/devonfw-ide-usage.asciidoc index b19f3eaa9..0dc0dde5c 100644 --- a/documentation/devonfw-ide-usage.asciidoc +++ b/documentation/devonfw-ide-usage.asciidoc @@ -28,6 +28,8 @@ include::dotnet.asciidoc[leveloffset=3] include::eclipse.asciidoc[leveloffset=3] +include::gcviewer.asciidoc[leveloffset=3] + include::graalvm.asciidoc[leveloffset=3] include::gradle.asciidoc[leveloffset=3] diff --git a/documentation/gcviewer.asciidoc b/documentation/gcviewer.asciidoc index cc33ae1cb..4db847440 100644 --- a/documentation/gcviewer.asciidoc +++ b/documentation/gcviewer.asciidoc @@ -12,10 +12,9 @@ Currently this feature is new and therefore experimental. It may change in incompatible ways in the next releases until we reach a stable state. We hope that all is working fine for you. However, do not expect everything to work out of the box. -In case you are facing issues (e.g. network problems with Cisco AnyConnect, etc.) please give us feedback so we can improve. -The arguments (`devon oc «args»`) are explained in the following table: +The arguments (`devon gcviewer «args»`) are explained in the following table: .Usage of `devon gcviewer` [options="header"] diff --git a/documentation/scripts.asciidoc b/documentation/scripts.asciidoc index 439985dae..dfac72013 100644 --- a/documentation/scripts.asciidoc +++ b/documentation/scripts.asciidoc @@ -15,6 +15,7 @@ This directory is the heart of the `devonfw-ide` and contains the required link: │ ├── link:docker.asciidoc[docker] │ ├── link:dotnet.asciidoc[dotnet] │ ├── link:eclipse.asciidoc[eclipse] +│ ├── link:gcviewer.asciidoc[gcviewer] │ ├── link:graalvm.asciidoc[graalvm] │ ├── link:gradle.asciidoc[gradle] | ├── link:helm.asciidoc[helm] diff --git a/scripts/src/main/resources/scripts/command/gcviewer b/scripts/src/main/resources/scripts/command/gcviewer index b20976cbe..ba2cea522 100644 --- a/scripts/src/main/resources/scripts/command/gcviewer +++ b/scripts/src/main/resources/scripts/command/gcviewer @@ -19,16 +19,18 @@ GCVIEWER_HOME="${DEVON_IDE_HOME}/software/gcviewer" # gcviewer installation function doSetup(){ - if [ -z "${GCVIEWER_VERSION}" ] + if [ "${1}" != "silent" ] then - doEcho "Getting the latest release of GCViewer..." - GCVIEWER_VERSION=$(curl "https://github.com/chewiebug/GCViewer/tags" | awk -F "/tag/" '/GCViewer/ {print $2}' | sort -r | head -1 | awk -F "\">" '{print $1}') - fi - - do_not_extract="Not Empty" - doInstall "-" "${GCVIEWER_HOME}" "gcviewer" "${GCVIEWER_VERSION}" "" "" "" "" "" "" "${do_not_extract}" - doCreateGCViewerScript - + if [ -z "${GCVIEWER_VERSION}" ] + then + doEcho "Getting the latest release of GCViewer..." + GCVIEWER_VERSION=$(curl "https://github.com/chewiebug/GCViewer/tags" | awk -F "/tag/" '/GCViewer/ {print $2}' | sort -r | head -1 | awk -F "\">" '{print $1}') + fi + do_not_extract="Not Empty" + doInstall "-" "${GCVIEWER_HOME}" "gcviewer" "${GCVIEWER_VERSION}" "" "" "" "" "" "" "${do_not_extract}" + doCreateGCViewerScript + fi + } function doStart(){ @@ -73,12 +75,17 @@ case ${1} in echo ;; "setup" | "s") - doSetup + if [ "${2}" == "silent" ] + then + doSetup silent + else + doSetup + fi ;; "start" | "") doStart ;; *) - doError "Unkown command. Call devon gcviewer to setup or start GCViewer OR devon gcviewer help for available commands" + doError "Unkown command!" ;; esac \ No newline at end of file