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

make powershell completion works to fill task name #902

Merged
merged 2 commits into from
Oct 29, 2022
Merged

make powershell completion works to fill task name #902

merged 2 commits into from
Oct 29, 2022

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented Oct 17, 2022

this is a completion script only change, you can copy the powershell script to local to use it get merged and released

( <tab> is for Tab input)

before:

❯❯ ~\..\..\task git:(master) task l<tab>
clean          docs           lint           npm            sleepit        test-release
default        install        mod            packages       test

after:

task l<tab> -> task lint

OR show prefix matches

❯❯ ~\..\..\task git:(master) task d<tab>
default   docs

as for : splited sub task

task do<tab> -> task docs

task docs<tab> -> task docs:

then

❯❯ ~\..\..\task git:(master) task docs:<tab>
docs:build       docs:changelog   docs:clean       docs:deploy      docs:setup       docs:start

and current output format of --list-all make it hard to support sub task like docs:clean or bu ild, so just make current script works and ignore these cases.

@andreynering andreynering added the area: completions Changes related to shell completions and scripts. label Oct 29, 2022
@andreynering
Copy link
Member

Thanks @trim21!

@andreynering andreynering merged commit 405b79f into go-task:master Oct 29, 2022
@trim21 trim21 deleted the patch-1 branch October 29, 2022 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: completions Changes related to shell completions and scripts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants