Skip to content

Commit 4225897

Browse files
authored
docs: fixup default value / valid options formatting (#249)
1 parent 34e4e37 commit 4225897

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

lib/CommandCall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const availableCommands = ['sh', 'cl', 'qsh'];
2121
* CL Command Options
2222
* @typedef {object} clOptions
2323
* @property {string} [exec=cmd] - How to run the command.
24-
* Valid options: 'cmd', 'system', or 'rexx'. Default is 'cmd'.
24+
* Valid options: ``cmd``, ``system``, or ``rexx``. Default is ``cmd``.
2525
* @property {string} [error=fast] - Determines action when an error is encountered.
2626
* Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on``
2727
* will cause the script execution to stop and log a full error report.

lib/Deprecated.js

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ class iPgm {
7373
}
7474

7575
/**
76-
* @deprecated Replaced by ``ProgramCall.addParam()`` and will be removed in the next major version.
76+
* @deprecated Replaced by ``ProgramCall.addParam()`` and will be removed in the next major
77+
* version.
7778
* @description Adds a parameter to the program.
7879
* @param {string|array} data - The value of the the data or 2D array ds definition.
7980
* @param {string|object} [type] - The XMLSERVICE data type or ds options.
@@ -417,8 +418,8 @@ class iSql {
417418
/**
418419
* commit options
419420
* @typedef {object} commitOptions
420-
* @property {string} [action=commit] - The commit action either 'commit' or 'rollback'.
421-
* Default is 'commit'.
421+
* @property {string} [action=commit] - The commit action either ``commit`` or ``rollback``.
422+
* Default is ``commit``.
422423
* @property {string} [error=fast] - Determines action when an error is encountered.
423424
* Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on``
424425
* will cause the script execution to stop and log a full error report.
@@ -447,7 +448,8 @@ class iSql {
447448
/**
448449
* count options
449450
* @typedef {object} countOptions
450-
* @property {string} [desc=both] - The desc can be 'col', 'parm', or 'both'. Default is 'both'.
451+
* @property {string} [desc=both] - The desc can be ``col``, ``parm``, or ``both``.
452+
* Default is ``both``.
451453
* @property {string} [error=fast] - Determines action when an error is encountered.
452454
* Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on``
453455
* will cause the script execution to stop and log a full error report.
@@ -467,8 +469,8 @@ class iSql {
467469
/**
468470
* describe options
469471
* @typedef {object} describeOptions
470-
* @property {string} [desc=both] - The desc option can be 'col', 'parm', or 'both'.
471-
* Default is 'both'.
472+
* @property {string} [desc=both] - The desc option can be ``col``, ``parm``, or ``both``.
473+
* Default is ``both``.
472474
* @property {string} [error=fast] - Determines action when an error is encountered.
473475
* Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on``
474476
* will cause the script execution to stop and log a full error report.
@@ -488,9 +490,10 @@ class iSql {
488490
/**
489491
* fetch options
490492
* @typedef {object} fetchOptions
491-
* @property {string} [block=all] - The block option can be 'all' or number of rows to fetch 'n'.
493+
* @property {string} [block=all] - The block option can be ``all`` or number of rows to
494+
* fetch ``n``.
492495
* Default is 'all'.
493-
* @property {string} [desc=on] - The desc option can be 'on' or 'off'. Default is 'on'.
496+
* @property {string} [desc=on] - The desc option can be 'on' or 'off'. Default is ``on``.
494497
* @property {string} [error=fast] - Determines action when an error is encountered.
495498
* Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on``
496499
* will cause the script execution to stop and log a full error report.
@@ -529,12 +532,13 @@ class iConn {
529532
/**
530533
* Deprecated rest transport configuration
531534
* @typedef {object} restConfig
532-
* @property {string} host=localhost - The hostname of the server. Default is 'localhost'.
535+
* @property {string} host=localhost - The hostname of the server. Default is ``localhost``.
533536
* @property {string} [ipc=*NA] - The key name/security route to XMLSERVICE job.
534-
* Default is '*NA'.
535-
* @property {string} [ctl=*here] - The control options for XMLSERVICE jobs. Defaults is '*here'.
536-
* @property {number} port=80 - The port on the server. Default is 80.
537-
* @property {string} path=/ - The path to xmlcgi endpoint. Default is '/'.
537+
* Default is ``*NA``.
538+
* @property {string} [ctl=*here] - The control options for XMLSERVICE jobs.
539+
* Defaults is ``*here``.
540+
* @property {number} port=80 - The port on the server. Default is ``80``.
541+
* @property {string} path=/ - The path to xmlcgi endpoint. Default is ``/``.
538542
*/
539543

540544
/**
@@ -4252,14 +4256,14 @@ class iWork {
42524256
* CL Command Options
42534257
* @typedef {object} clOptionsDeprecated
42544258
* @property {string} [exec=cmd] - How to run the command.
4255-
* Valid options: 'cmd', 'system', or 'rexx'. Default is 'cmd'.
4259+
* Valid options: 'cmd', 'system', or 'rexx'. Default is ``cmd``.
42564260
* @property {string} [error=fast] - Determines action when an error is encountered.
42574261
* Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on``
42584262
* will cause the script execution to stop and log a full error report.
42594263
* Using ``off`` or ``fast`` continues executing the script. The Difference is that ``fast``
42604264
* will log a brief error report and ``off`` will not.
42614265
* @property {string} [hex=off] - Whether to output data in hex format.
4262-
* Valid options are 'on' or 'off'. Default is 'off'.
4266+
* Valid options are ``on`` or ``off``. Default is ``off``.
42634267
* @property {string} [before] - The CCSID to convert to before command call.
42644268
* @property {string} [after] - The CCSID to convert to after command call.
42654269
*/
@@ -4281,7 +4285,7 @@ function iCmd(cmd, options) {
42814285
* QSH Command Options
42824286
* @typedef {object} qshOptionsDeprecated
42834287
* @property {string} [rows] - Whether to split the output row by row.
4284-
* Valid options are 'on' or 'off'. Default is 'off'.
4288+
* Valid options are 'on' or 'off'. Default is ``off``.
42854289
* @property {string} [error=fast] - Determines action when an error is encountered.
42864290
* Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on``
42874291
* will cause the script execution to stop and log a full error report.

0 commit comments

Comments
 (0)