diff options
Diffstat (limited to 'cli/js/ops/os.ts')
-rw-r--r-- | cli/js/ops/os.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/js/ops/os.ts b/cli/js/ops/os.ts index 30aa6d0d4..e63d8b358 100644 --- a/cli/js/ops/os.ts +++ b/cli/js/ops/os.ts @@ -27,12 +27,17 @@ function getEnv(key: string): string | undefined { return sendSync("op_get_env", { key })[0]; } +function deleteEnv(key: string): void { + sendSync("op_delete_env", { key }); +} + export const env = { get: getEnv, toObject(): { [key: string]: string } { return sendSync("op_env"); }, set: setEnv, + delete: deleteEnv, }; type DirKind = |