fly-secrets-diff 0.1.1 → 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.
Files changed (2) hide show
  1. package/index.mjs +8 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -86,7 +86,7 @@ function args() {
86
86
  * @param {boolean} interactive - log stdout during execution
87
87
  * @returns {Promise<string>}
88
88
  */
89
- export function $(cmd, args, interactive = true) {
89
+ export function $(cmd, args, interactive = false) {
90
90
  const { promise, resolve, reject } =
91
91
  /** @type {PromiseWithResolvers<string>} */ (Promise.withResolvers())
92
92
  const spawn = child_process.spawn(cmd, args, { env: process.env })
@@ -288,7 +288,7 @@ export async function printDiff(args) {
288
288
 
289
289
  if (missingArr.length > 0) {
290
290
  log.info(
291
- `\n 🟢 Add missing:
291
+ `\n Add missing secrets to machines:\n
292
292
  fly secrets set --app=${args.app} \\
293
293
  ${missing}`
294
294
  )
@@ -296,11 +296,16 @@ export async function printDiff(args) {
296
296
 
297
297
  if (unusedArr.length > 0) {
298
298
  log.info(
299
- `\n 🔴 Remove unused:
299
+ `\n Remove unused secrets from machines:\n
300
300
  fly secrets unset --app=${args.app} \\
301
301
  ${unusedStr}`
302
302
  )
303
+
304
+ if (!args.reveal) {
305
+ console.log('\nTip: run with --reveal to show the secrets')
306
+ }
303
307
  }
308
+ log.info()
304
309
  }
305
310
 
306
311
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fly-secrets-diff",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "CLI tool to diff fly.io machine secrets and local secrets",
5
5
  "keywords": [
6
6
  "diff",