Merge branch 'master' into add-JSDoc-comments

This commit is contained in:
Matthew Nickson
2022-04-21 13:01:22 +01:00
committed by GitHub
185 changed files with 15986 additions and 5448 deletions

View File

@@ -11,7 +11,8 @@ module.exports = Ping;
/**
* Constructor for ping class
* @param {string} host Host to ping
* @param {string} options Command line options for ping
* @param {object} [options] Options for the ping command
* @param {array|string} [options.args] - Arguments to pass to the ping command
*/
function Ping(host, options) {
if (!host) {
@@ -139,6 +140,11 @@ Ping.prototype.send = function (callback) {
}
});
/**
* @param {Function} callback
*
* Generated by Trelent
*/
function onEnd() {
let stdout = this.stdout._stdout;
let stderr = this.stderr._stderr;