Skip to content

Commit

Permalink
feat: rename CLI option for omitting headers to clarify functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Pragadesh-45 committed Nov 21, 2024
1 parent 72bd1b4 commit 1573894
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/bruno-cli/src/commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const builder = async (yargs) => {
type: 'boolean',
description: 'Stop execution after a failure of a request, test, or assertion'
})
.option('reporter-omit-headers', {
.option('reporter-skip-all-headers', {
type: 'boolean',
description: 'Omit headers from the reporter output',
default: false
Expand All @@ -274,7 +274,7 @@ const builder = async (yargs) => {
.example('$0 run request.bru --env local', 'Run a request with the environment set to local')
.example('$0 run folder', 'Run all requests in a folder')
.example('$0 run folder -r', 'Run all requests in a folder recursively')
.example('$0 run --reporter-omit-headers', 'Run all requests in a folder recursively with omitted headers from the reporter output')
.example('$0 run --reporter-skip-all-headers', 'Run all requests in a folder recursively with omitted headers from the reporter output')
.example(
'$0 run --reporter-skip-headers "Authorization"',
'Run all requests in a folder recursively with skipped headers from the reporter output'
Expand Down Expand Up @@ -329,7 +329,7 @@ const handler = async function (argv) {
sandbox,
testsOnly,
bail,
reporterOmitHeaders,
reporterSkipAllHeaders,
reporterSkipHeaders
} = argv;
const collectionPath = process.cwd();
Expand Down Expand Up @@ -543,7 +543,7 @@ const handler = async function (argv) {
suitename: bruFilepath.replace('.bru', '')
});

if (reporterOmitHeaders) {
if (reporterSkipAllHeaders) {
results.forEach((result) => {
result.request.headers = {};
result.response.headers = {};
Expand Down

0 comments on commit 1573894

Please sign in to comment.