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
/
listProfiles.ts
13 lines
(10 loc)
•
298 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ listProfiles }
from
'../shared'
;
export
function
listProfilesCommand
(
) {
const
profiles =
listProfiles
();
if
(profiles.
length
===
0
) {
console
.
log
(
'No profiles found.'
); }
else
{
console
.
log
(
'Available profiles:'
); profiles.
forEach
(
(
p
) =>
console
.
log
(
`-
${p}
`
)); } }