Skip to content

Commit 653644a

Browse files
Merge pull request #86 from observablehq/wiltse/secretconfig
Alter --standalone secret message
2 parents 33aeca2 + 20ed582 commit 653644a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/commands.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,11 @@ export async function add(argv, reset = false) {
153153
writeConfig(config);
154154

155155
console.log(`Configuration ${reset ? `reset` : `added`} for "${name}"`);
156-
if (standalone)
157-
console.log(`Secret for DabaseClient("${name}"):\ndb:${name}:${secret}`);
156+
if (standalone) {
157+
console.log(
158+
`Secret for DabaseClient("${name}"):\nOBSERVABLEHQ_DB_SECRET_${name}=${secret}`
159+
);
160+
}
158161
}
159162

160163
export function reset(argv) {

0 commit comments

Comments
 (0)