zowe / zowe-cli-cics-plugin

Migrated to zowe/cics-for-zowe-client.
https://github.com/zowe/cics-for-zowe-client
Eclipse Public License 2.0
7 stars 11 forks source link

Add `define webservice` command #65

Closed ghost closed 4 years ago

ghost commented 4 years ago

Resolves #58. Help text below.

$ zowe cics define webservice -h

 COMMAND NAME
 ------------

   webservice | web

 DESCRIPTION
 -----------

   Define a new web service to CICS.

 USAGE
 -----

   zowe cics define webservice <webserviceName> <csdGroup> [options]

 POSITIONAL ARGUMENTS
 --------------------

   webserviceName                (string)

      The name of the WEBSERVICE to create. The maximum length of the web service name
      is eight characters.

   csdGroup              (string)

      The CICS system definition (CSD) Group for the new web service that you want to
      define. The maximum length of the group name is eight characters.

 REQUIRED OPTIONS
 ----------------

   --pipeline-name  | --pn (string)

      The name of the PIPELINE resource definition for the web service. The maximum
      length of the pipeline name is eight characters

   --wsbind  (string)

      The file name of the web service binding file on HFS.

 OPTIONS
 -------

   --description  | --desc (string)

      Description of the web service resource being defined.

   --validation  (boolean)

      Specifies whether full validation of SOAP messages against the corresponding
      schema in the web service description should be performed at run time.

   --wsdlfile  | --wsdl (string)

      The file name of the web service description (WSDL) file on HFS.

   --region-name  (string)

      The CICS region name to which to define the new web service.

   --cics-plex  (string)

      The name of the CICSPlex to which to define the new web service.

 CICS CONNECTION OPTIONS
 -----------------------

   --host  | -H (string)

      The CICS server host name.

   --port  | -P (number)

      The CICS server port.

      Default value: 443

   --user  | -u (string)

      Mainframe (CICS) user name, which can be the same as your TSO login.

   --password  | --pw (string)

      Mainframe (CICS) password, which can be the same as your TSO password.

   --reject-unauthorized  | --ru (boolean)

      Reject self-signed certificates.

      Default value: true

   --protocol  | -o (string)

      Specifies CMCI protocol (http or https).

      Default value: http
      Allowed values: http, https

 PROFILE OPTIONS
 ---------------

   --cics-profile  | --cics-p (string)

      The name of a (cics) profile to load for this command execution.

 GLOBAL OPTIONS
 --------------

   --response-format-json  | --rfj (boolean)

      Produce JSON formatted data from a command

   --help  | -h (boolean)

      Display help text

   --help-examples  (boolean)

      Display examples for all the commands in a the group

   --help-web  | --hw (boolean)

      Display HTML help in browser

 EXAMPLES
 --------

   - Define a webservice named WEBSVCA for the pipeline named
   PIPE123 to the region named MYREGION in the CSD group MYGRP where the binding
   file is /u/exampleapp/wsbind/example.log:

      $ zowe cics define webservice WEBSVCA MYGRP --pipeline-name PIPELINE --wsbind /u/exampleapp/wsbind/example.log --region-name MYREGION
codecov[bot] commented 4 years ago

Codecov Report

Merging #65 into master will not change coverage. The diff coverage is 80.85%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #65   +/-   ##
=======================================
  Coverage   92.19%   92.19%           
=======================================
  Files          60       60           
  Lines         615      615           
  Branches       71       71           
=======================================
  Hits          567      567           
  Misses         48       48
Impacted Files Coverage Δ
src/api/constants/CicsCmci.constants.ts 100% <ø> (ø) :arrow_up:
src/cli/-strings-/en.ts 100% <ø> (ø) :arrow_up:
src/cli/define/Define.definition.ts 100% <100%> (ø) :arrow_up:
src/cli/define/webservice/Webservice.definition.ts 100% <100%> (ø) :arrow_up:
src/api/methods/delete/Delete.ts 82.85% <25%> (ø) :arrow_up:
src/api/methods/define/Define.ts 97.29% <88.88%> (ø) :arrow_up:
src/cli/define/webservice/Webservice.handler.ts 93.75% <93.75%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 50c3ed9...95d5b6a. Read the comment docs.