From 01ddac958ec96cdf6ebabb14d8d6124ea78f4996 Mon Sep 17 00:00:00 2001 From: Bill Church Date: Wed, 21 Aug 2024 19:44:47 +0000 Subject: [PATCH] chore: minor refactoring --- app/ssh.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/ssh.js b/app/ssh.js index fe9098e..e68501d 100644 --- a/app/ssh.js +++ b/app/ssh.js @@ -44,6 +44,11 @@ SSHConnection.prototype.connect = function(creds) { }) } +/** + * Gets the SSH configuration + * @param {Object} creds - The credentials object + * @returns {Object} The SSH configuration object + */ SSHConnection.prototype.getSSHConfig = function(creds) { return { host: creds.host, @@ -73,6 +78,11 @@ SSHConnection.prototype.shell = function(options) { }) } +/** + * Resizes the terminal + * @param {number} rows - The number of rows + * @param {number} cols - The number of columns + */ SSHConnection.prototype.resizeTerminal = function(rows, cols) { if (this.stream) { this.stream.setWindow(rows, cols)