You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -294,7 +295,7 @@ if (module === require.main) {
294
295
process.exit(1);
295
296
}
296
297
297
-
constcli=require(`yargs`)
298
+
require(`yargs`)// eslint-disable-line
298
299
.demand(1)
299
300
.command(
300
301
`string <string>`,
@@ -313,12 +314,13 @@ if (module === require.main) {
313
314
`Inspects a text file stored on Google Cloud Storage using the Data Loss Prevention API.`,
314
315
{
315
316
initialTimeout: {
316
-
type: 'integer',
317
-
alias: '-i',
317
+
type: 'number',
318
+
alias: 'i',
318
319
default: 5000
319
320
},
320
321
tries: {
321
-
type: 'integer',
322
+
type: 'number',
323
+
alias: 'r',
322
324
default: 5
323
325
}
324
326
},
@@ -330,19 +332,22 @@ if (module === require.main) {
330
332
{
331
333
projectId: {
332
334
type: 'string',
335
+
alias: 'p',
333
336
default: process.env.GCLOUD_PROJECT
334
337
},
335
338
namespaceId: {
336
339
type: 'string',
340
+
alias: 'n',
337
341
default: ''
338
342
},
339
343
initialTimeout: {
340
-
type: 'integer',
341
-
alias: '-i',
344
+
type: 'number',
345
+
alias: 'i',
342
346
default: 5000
343
347
},
344
348
tries: {
345
-
type: 'integer',
349
+
type: 'number',
350
+
alias: 'r',
346
351
default: 5
347
352
}
348
353
},
@@ -365,7 +370,7 @@ if (module === require.main) {
365
370
.option('f',{
366
371
alias: 'maxFindings',
367
372
default: 0,
368
-
type: 'integer',
373
+
type: 'number',
369
374
global: true
370
375
})
371
376
.option('q',{
@@ -394,8 +399,9 @@ if (module === require.main) {
394
399
.example(`node $0 gcsFile my-bucket my-file.txt`)
395
400
.wrap(120)
396
401
.recommendCommands()
397
-
.epilogue(`For more information, see https://cloud.google.com/dlp/docs. Optional flags are explained at https://cloud.google.com/dlp/docs/reference/rest/v2beta1/content/inspect#InspectConfig`);
398
-
399
-
cli.help().strict().argv;
402
+
.epilogue(`For more information, see https://cloud.google.com/dlp/docs. Optional flags are explained at https://cloud.google.com/dlp/docs/reference/rest/v2beta1/content/inspect#InspectConfig`)
Copy file name to clipboardExpand all lines: dlp/redact.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,6 @@ if (module === require.main) {
125
125
.recommendCommands()
126
126
.epilogue(`For more information, see https://cloud.google.com/dlp/docs. Optional flags are explained at https://cloud.google.com/dlp/docs/reference/rest/v2beta1/content/inspect#InspectConfig`);
0 commit comments