UNPKG
@imduchuyyy/crypt-env
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
Secure environment manager with profile-based encrypted storage
github.com/imduchuyyy/crypt-env
@imduchuyyy/crypt-env
/
cmd
/
deleteProfile.ts
11 lines
(8 loc)
•
238 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ deleteProfileFile }
from
'../shared'
;
export
function
deleteProfile
(
profile: string
) {
if
(profile ===
'main'
) {
console
.
log
(
'Deleting the "main" profile is not allowed.'
);
return
; }
deleteProfileFile
(profile); }