@secretstash/cli 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +16 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath } from "url";
|
|
|
8
8
|
import { dirname as dirname2, join as join2 } from "path";
|
|
9
9
|
|
|
10
10
|
// src/commands/auth.ts
|
|
11
|
-
import
|
|
11
|
+
import enquirer from "enquirer";
|
|
12
12
|
import qrcode from "qrcode-terminal";
|
|
13
13
|
|
|
14
14
|
// src/config.ts
|
|
@@ -817,6 +817,7 @@ var ui = {
|
|
|
817
817
|
};
|
|
818
818
|
|
|
819
819
|
// src/commands/auth.ts
|
|
820
|
+
var { prompt } = enquirer;
|
|
820
821
|
var SERVICE_TOKEN_PREFIX = "stk_";
|
|
821
822
|
async function handleServiceTokenLogin(token, fromEnvVar = false) {
|
|
822
823
|
ui.heading("SecretStash Service Token Login");
|
|
@@ -1134,7 +1135,8 @@ function registerAuthCommands(program2) {
|
|
|
1134
1135
|
}
|
|
1135
1136
|
|
|
1136
1137
|
// src/commands/teams.ts
|
|
1137
|
-
import
|
|
1138
|
+
import enquirer2 from "enquirer";
|
|
1139
|
+
var { prompt: prompt2 } = enquirer2;
|
|
1138
1140
|
function registerTeamCommands(program2) {
|
|
1139
1141
|
const teams = program2.command("teams").description("Manage teams");
|
|
1140
1142
|
teams.command("list").alias("ls").description("List all teams you belong to").action(async () => {
|
|
@@ -1449,7 +1451,8 @@ function registerTeamCommands(program2) {
|
|
|
1449
1451
|
}
|
|
1450
1452
|
|
|
1451
1453
|
// src/commands/projects.ts
|
|
1452
|
-
import
|
|
1454
|
+
import enquirer3 from "enquirer";
|
|
1455
|
+
var { prompt: prompt3 } = enquirer3;
|
|
1453
1456
|
function requireTeam() {
|
|
1454
1457
|
const team = configManager.getCurrentTeam();
|
|
1455
1458
|
if (!team) {
|
|
@@ -1644,7 +1647,8 @@ function registerProjectCommands(program2) {
|
|
|
1644
1647
|
}
|
|
1645
1648
|
|
|
1646
1649
|
// src/commands/environments.ts
|
|
1647
|
-
import
|
|
1650
|
+
import enquirer4 from "enquirer";
|
|
1651
|
+
var { prompt: prompt4 } = enquirer4;
|
|
1648
1652
|
function requireProject() {
|
|
1649
1653
|
const project = configManager.getCurrentProject();
|
|
1650
1654
|
if (!project) {
|
|
@@ -1943,10 +1947,11 @@ function registerEnvironmentCommands(program2) {
|
|
|
1943
1947
|
}
|
|
1944
1948
|
|
|
1945
1949
|
// src/commands/secrets.ts
|
|
1946
|
-
import
|
|
1950
|
+
import enquirer5 from "enquirer";
|
|
1947
1951
|
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, existsSync as existsSync2 } from "fs";
|
|
1948
1952
|
import { spawn } from "child_process";
|
|
1949
1953
|
import yaml from "js-yaml";
|
|
1954
|
+
var { prompt: prompt5 } = enquirer5;
|
|
1950
1955
|
function requireContext() {
|
|
1951
1956
|
const teamSlug = projectConfig.getEffectiveTeam();
|
|
1952
1957
|
const projectSlug = projectConfig.getEffectiveProject();
|
|
@@ -2987,7 +2992,8 @@ function registerSecretCommands(program2) {
|
|
|
2987
2992
|
}
|
|
2988
2993
|
|
|
2989
2994
|
// src/commands/diff.ts
|
|
2990
|
-
import
|
|
2995
|
+
import enquirer6 from "enquirer";
|
|
2996
|
+
var { prompt: prompt6 } = enquirer6;
|
|
2991
2997
|
function computeDiff(secrets1, secrets2) {
|
|
2992
2998
|
const map1 = new Map(secrets1.map((s) => [s.key, s.value]));
|
|
2993
2999
|
const map2 = new Map(secrets2.map((s) => [s.key, s.value]));
|
|
@@ -3141,7 +3147,8 @@ function registerDiffCommand(program2) {
|
|
|
3141
3147
|
}
|
|
3142
3148
|
|
|
3143
3149
|
// src/commands/share.ts
|
|
3144
|
-
import
|
|
3150
|
+
import enquirer7 from "enquirer";
|
|
3151
|
+
var { prompt: prompt7 } = enquirer7;
|
|
3145
3152
|
function requireContext2() {
|
|
3146
3153
|
const teamSlug = projectConfig.getEffectiveTeam();
|
|
3147
3154
|
const projectSlug = projectConfig.getEffectiveProject();
|
|
@@ -3693,8 +3700,9 @@ function registerDoctorCommand(program2) {
|
|
|
3693
3700
|
}
|
|
3694
3701
|
|
|
3695
3702
|
// src/commands/tags.ts
|
|
3696
|
-
import
|
|
3703
|
+
import enquirer8 from "enquirer";
|
|
3697
3704
|
import chalk2 from "chalk";
|
|
3705
|
+
var { prompt: prompt8 } = enquirer8;
|
|
3698
3706
|
function registerTagCommands(program2) {
|
|
3699
3707
|
const tags = program2.command("tags").description("Manage tags for organizing secrets");
|
|
3700
3708
|
tags.command("list").alias("ls").description("List all tags in the current team").action(async () => {
|