Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: flags to control the output #25

Closed
codesenberg opened this issue Jan 29, 2018 · 0 comments
Closed

feature: flags to control the output #25

codesenberg opened this issue Jan 29, 2018 · 0 comments
Assignees
Milestone

Comments

@codesenberg
Copy link
Owner

In a setup where bombardier is used by some script it is quite inconvenient to parse bombardier's output as it turned out (see #24). As a first step to resolve this issue, I plan to add two flags: --print (short: -p) and --no-print. The first one will control what to print in case something needs to be printed. Syntax will look something like:

--print=[<value>,]{1,2}<value>
<value> = intro (i) | progress (p) | result (r)

Some examples:

# prints intro, progress and result
bombardier --print=r,i,p <url>
# same as above
bombardier --print=intro,progress,result <url>
# result only
bombardier --print=r <url>
# same as above
bombardier -p=result <url>

In case you don't need any output, you will be able to use --no-print flag.

@codesenberg codesenberg self-assigned this Jan 29, 2018
@codesenberg codesenberg added this to the v1.2 milestone Jan 29, 2018
@codesenberg codesenberg changed the title feature: flag's to control output feature: flags to control output Jan 29, 2018
@codesenberg codesenberg changed the title feature: flags to control output feature: flag to control output Feb 2, 2018
codesenberg added a commit that referenced this issue Feb 5, 2018
Added --no-print flag, that allows to turn off the output completely.
-q is short for quiet, since kingpin allows short names to contain only
one letter and other letters (like -s and -n) are already in use.

Updates #24, updates #25.
@codesenberg codesenberg changed the title feature: flag to control output feature: flags to control output Feb 5, 2018
@codesenberg codesenberg changed the title feature: flags to control output feature: flags to control the output Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant