New extension: Programmable Completion (Shell)

Hey everyone!

The next extension for the Shell challenge is now live: Programmable Completion.

Programmable Completion allows your shell to define custom completion behavior for commands, enabling context-aware suggestions based on the command and its inputs.

Once you complete this extension, your shell will support behaviors like:

$ git cl<TAB>
$ git clone 

Here’s the stage breakdown:

Please give this a try and let us know how it can be improved! @UdeshyaDhungana (author of this extension) and I will be available here to help out with any tester or instruction-related issues.

1 Like

Can I get “gitRemoteCompleter” script ?

Hey @goose-977, is this what you’re looking for?

I will test in my local , Thank you

@andy1li I see test execute command complete -C /tmp/ant/gitRemoteCompleter git I don’t know what gitRemoteCompleter look like

@goose-977 In that case, the link I shared earlier isn’t what you need, sorry about that.

For this extension, you only need to care about what the script outputs, not its internal implementation.

If you’re curious about how something like gitRemoteCompleter might look, you could do something like this:

But the result might not be very illuminating:

1 Like