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 Request] Group all not found errors while globbing #1

Open
bendtherules opened this issue Mar 6, 2018 · 2 comments
Open

Comments

@bendtherules
Copy link

bendtherules commented Mar 6, 2018

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.

@bendtherules bendtherules changed the title [Feature Request] Group all not found errors while globbing (directory with no package.json or files) [Feature Request] Group all not found errors while globbing Mar 6, 2018
@sandeep1995
Copy link

I do feel the same

@rousan
Copy link
Owner

rousan commented Mar 6, 2018

@bendtherules
I liked your idea, I will add this feature soon. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants