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

Filter introduction suggestions #207

Open
hunter2009 opened this issue Jan 12, 2022 · 2 comments
Open

Filter introduction suggestions #207

hunter2009 opened this issue Jan 12, 2022 · 2 comments

Comments

@hunter2009
Copy link
Contributor

hunter2009 commented Jan 12, 2022

After reading useage of filtering multiple times, I found some filter usage rules.
It had three key elements and two operators:
Elements list

  • package-name
  • dir-name
  • git(commitId or branch)

Two operators

  • ... ellipsis
  • ^

element(except dir-name) and operators can be mixed, like this:<operators>{package-name}<operators>. It had 20 combinations like this:

only package-name:(just 1)
1.package-name

package-name with one operator(4 situations):
2. ...package-name
3. package-name...
4. ^package-name
5. package-name^

package-name with two operator(6 situations):
6. ...package-name...
7. ^package-name^
8. ...^package-name,
9. ...package-name^
10. package-name^...
11. ^package-name...

package-name with three operator(8 situations)
...balabala...

package-name with four operator(1 situations)
...^package-name^...

It's very interesting and easy to get all combinations. So I think filter can be grouped by elements and operators, it's a good way to learn.

@hunter2009
Copy link
Contributor Author

@zkochan Do you have any suggestions? I'm going to submit a merge request to slightly adjust the filter command doc structure by elements and operators

@zkochan
Copy link
Member

zkochan commented Feb 20, 2022

Feel free to improve the docs.

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

2 participants