Skip to content

Commit

Permalink
Add: env vars also without exec session
Browse files Browse the repository at this point in the history
  • Loading branch information
NobleMajo committed Feb 12, 2025
1 parent e867d5e commit bb55731
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hivessh",
"version": "1.2.3",
"version": "1.3.1",
"description": "HiveSsh is an innovative library designed to streamline SSH2 connections and simplify task execution on Linux servers.",
"type": "module",
"main": "./dist/index.cjs",
Expand Down Expand Up @@ -68,4 +68,4 @@
"dependencies": {
"ssh2": "^1.15.0"
}
}
}
3 changes: 3 additions & 0 deletions src/SshExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ export interface ArrayOptions {

export interface CmdChannelOptions extends ExecOptions {
pwd?: string,
env?: NodeJS.ProcessEnv,
timeoutMillis?: number,
sudo?: boolean,
}

export interface CmdChannelSettings extends ExecOptions {
pwd: string,
env: NodeJS.ProcessEnv | undefined,
timeoutMillis: number,
sudo: boolean,
}

export const defaultCmdChannelSettings: CmdChannelSettings = {
pwd: "/",
env: undefined,
timeoutMillis: -1,
sudo: false,
}
Expand Down

0 comments on commit bb55731

Please sign in to comment.