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] Add --verbose or --debug option to show additional information in cli #1099

Closed
tomasnorre opened this issue Oct 6, 2024 · 1 comment

Comments

@tomasnorre
Copy link
Owner

tomasnorre commented Oct 6, 2024

Is your feature request related to a problem? Please describe

This is regarding BuildQueueCommand.

Because it is very chatty, I think it would be a possibility to hide the output behind an option, perhaps --verbose or --debug. You can show the total number of omitted pages (when the option is not given) with the hint to display them with the option.

Describe the solution you would like

It could probably be done with $output->setVerbosity(OutputInterface::VERBOSITY_NORMAL); And then switch the value depending if --verbose or --debug

Describe alternatives you've considered

No response

Teachability, Documentation, Adoption, Migration Strategy

No response

@tomasnorre
Copy link
Owner Author

I wasn't aware of this, but the Symfony Command has some built in feature for this.

tomas@crawler-devbox-web:/var/www/html$ bin/typo3 crawler:buildQueue --help
Description:
  Create entries in the queue that can be processed at once

Usage:
  crawler:buildQueue [options] [--] <page> <conf>

Arguments:
  page                   The page from where the queue building should start
  conf                   A comma separated list of crawler configurations

Options:
  -d, --depth[=DEPTH]    Tree depth, 0-99', "How many levels under the 'page_id' to include. [default: "0"]
  -m, --mode[=MODE]      Specifies output modes url : Will list URLs which wget could use as input. queue: Will put entries in queue table. exec: Will execute all entries right away!
      --number[=NUMBER]  Specifies how many items are put in the queue per minute. Only valid for output mode "queue" [default: "0"]
  -h, --help             Display help for the given command. When no command is given display help for the list command
      --silent           Do not output any message
  -q, --quiet            Only errors are displayed. All other output is suppressed
  -V, --version          Display this application version
      --ansi|--no-ansi   Force (or disable --no-ansi) ANSI output
  -n, --no-interaction   Do not ask any interactive question
  -v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

So I'll leave as is for now, and close this issue.

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