Issue with platformGoAccess.php missing the app or worker
Opened this issue · 0 comments
trolologuy commented
Hello,
It seems that with the latest CLI version, the arguments [-A|--app APP]
or [--worker WORKER]
are no longer optional.
Running:
php platformGoAccess.php
Results to:
Available Platform.sh projects:
[1] YYY (yyy)
[2] XXX (xxx)
[3] ZZZ (zzz)
[4] AAA (aaa)
Enter a project number > 2
XXX was selected.
Please choose the number of lines to fetch:
[1] 5000
[2] 20000
[3] Max
Please select (default: [2]) > 3
Getting the log...
Parsing... [0] [0/s]
[InvalidArgumentException]
Specifying the --app or --worker is required in non-interactive mode
Usage: platform log [--lines LINES] [--tail] [-p|--project PROJECT] [--host HOST] [-e|--environment ENVIRONMENT] [-A|--app APP] [--worker WORKER] [--] [<type>]
For more information, type: platform help environment:logs
-
Statistics written to: XXX-goaccess-20200903123409.html
With the latest version of the CLI.
I think that parsing in the platformGoAccess.php
similar to the "project" or the "number of lines to fetch" would be required.