sl
sl copied to clipboard
[Feature Request] Group all not found errors while globbing
What happens now :
Running this command using sl *
on a directory which contains multiple project directories (some of which are not node projects) shows console output like this:
asp-project-1
No package.json file found: C:\Projects\asp-project-1
python-project-2
No package.json file found: C:\Projects\python-project-2
somefile.zip
Path needs to be a directory: C:\Projects\somefile.zip
node-project-1
- test : echo "Error: no test specified" && exit 1
Expectation:
Instead of mixing (in terms of line-wise console output) the node project folders with other files and folders, group the not found files and non-node project folders and show them in the end.
Something like this:
node-project-1
- test : echo "Error: no test specified" && exit 1
Ignored files and folder
------------------------
asp-project-1
No package.json file found: C:\Projects\asp-project-1
python-project-2
No package.json file found: C:\Projects\python-project-2
somefile.zip
Path needs to be a directory: C:\Projects\somefile.zip
You might also show the ignored section in some other way, like just printing out the files/folders name without detailed error reason for each of them.
Also, you might introduce a new flag to show the output in this way (like sl * --ignore
), keeping the default output as it is. But atleast someway to have this kind of output will be nice.