-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: modify setting and deleting env vars, remove unnecessary co…
…mments
- Loading branch information
Sanay Yogesh Shah
committed
Oct 29, 2024
1 parent
b9326c0
commit b28e101
Showing
5 changed files
with
17 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
type EnvVariableAction = 'SET' | 'DELETE'; | ||
|
||
export function toggleEnvVariable(name: string, option: EnvVariableAction, value?: string) { | ||
if (option === 'SET') { | ||
export const envVariable = { | ||
set: (name: string, value: string): void => { | ||
process.env[name] = value; | ||
} else if (option === 'DELETE') { | ||
}, | ||
delete: (name: string): void => { | ||
delete process.env[name]; | ||
} | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters