public void runWskDeploy()

in src/main/java/org/apache/openwhisk/intellij/wskdeploy/dialog/ui/WskDeployCmdDialogForm.java [72:95]


    public void runWskDeploy() {
        try {
            WhiskAuthWithName auth = (WhiskAuthWithName) namespaceJList.getSelectedValue();

            LOG.info(cmd.toCmdString());
            WskDeployCmdResponse response = CommandUtils.runCommand(cmd.toCmd(auth.getAuth())); // TODO running background thread
            LOG.info(response.getSuccessOutput());
            String errMsg = response.getErrorOutput();
            if (!errMsg.isEmpty()) {
                LOG.error(errMsg);
            }

            if (response.getExistCode() == 0) {
                NOTIFIER.notify(project, response.getSuccessOutput(), NotificationType.INFORMATION);
                EventUtils.publish(project, RefreshWhiskTreeListener.TOPIC, RefreshWhiskTreeListener::refreshWhiskTree);
            } else {
                NOTIFIER.notify(project, response.getErrorOutput(), NotificationType.ERROR);
            }

        } catch (NotExistFileException | IOException | InterruptedException ex) {
            LOG.error(ex);
            NOTIFIER.notify(project, "Failed to running command(" + cmd.getCmdName() + ") for " + ex.getMessage(), NotificationType.ERROR);
        }
    }