Skip to content

Commit 4452ce4

Browse files
committed
fix(stack): cli helpers
1 parent 503abbe commit 4452ce4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/stack/src/bin/commands/init/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ function resolveProvider(flags: Record<string, boolean>): InitProvider {
3737
export async function initCommand(flags: Record<string, boolean>) {
3838
const provider = resolveProvider(flags)
3939

40-
p.intro(`CipherStash Stack Setup`)
40+
p.intro('CipherStash Stack Setup')
41+
p.log.warn(
42+
'This command is a prototype and a sneak peek at what\'s next. It doesn\'t perform any actual setup yet.',
43+
)
4144
p.log.info(provider.introMessage)
4245

4346
let state: InitState = {}

packages/stack/src/bin/commands/secrets/helpers.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ export function getConfig(environment: string): SecretsConfig {
3434
const workspaceCRN = process.env.CS_WORKSPACE_CRN
3535
const clientId = process.env.CS_CLIENT_ID
3636
const clientKey = process.env.CS_CLIENT_KEY
37-
const apiKey = process.env.CS_CLIENT_ACCESS_KEY
3837
const accessKey = process.env.CS_ACCESS_KEY
3938

4039
const missing: string[] = []
4140
if (!workspaceCRN) missing.push('CS_WORKSPACE_CRN')
4241
if (!clientId) missing.push('CS_CLIENT_ID')
4342
if (!clientKey) missing.push('CS_CLIENT_KEY')
44-
if (!apiKey) missing.push('CS_CLIENT_ACCESS_KEY')
4543

4644
if (missing.length > 0) {
4745
console.error(
@@ -58,15 +56,14 @@ export function getConfig(environment: string): SecretsConfig {
5856
process.exit(1)
5957
}
6058

61-
if (!workspaceCRN || !clientId || !clientKey || !apiKey) {
59+
if (!workspaceCRN || !clientId || !clientKey || !accessKey) {
6260
throw new Error('Missing required configuration')
6361
}
6462

6563
return {
6664
workspaceCRN,
6765
clientId,
6866
clientKey,
69-
apiKey,
7067
accessKey,
7168
environment,
7269
}

0 commit comments

Comments
 (0)