inferUserDocsDirectory
causes performance and permission issues
#1721
Labels
type: enhancement
Request to enhance an existing feature
Bug report
Steps to reproduce
cd / vuepress -v
What is expected?
Output the version number
What is actually happening?
The command would either be stuck or throw an
EACESS
error.Other relevant information
It's caused by this function:
vuepress/packages/vuepress/lib/handleUnknownCommand.js
Lines 55 to 62 in 4ddf552
There are several problems with this approach:
--version
,--help
, this detection is redundant;globby
if used in a large directory (say, the user home directory), should output a progress indicator in that case (e.g. "Searching for documentation under the current directory…").The text was updated successfully, but these errors were encountered: