Re: [racket-users] Custom command completion?

2016-09-22 Thread Sam Tobin-Hochstadt
Right now, `raco` doesn't have anything like that, for either built-in or custom commands. What there is currently is this code: https://github.com/racket/shell-completion which basically hard-codes options, and calls `racket` to complete `raco` commands. It knows specifically about `raco planet`

Re: [racket-users] Custom command completion?

2016-09-22 Thread Jack Firth
Right, but shell completion varies by shell implementaiton so I was hoping that raco would have some built-in completion script that racket installs, and that script would dispatch to some racket code that implements custom completion for a particular command I'd like to stick something like

Re: [racket-users] Custom command completion?

2016-09-22 Thread Sam Tobin-Hochstadt
Shell completion (at least for bash, which I know best) isn't handled by `raco` at all -- it's all done in bash. So I think you'd have to do some shell script hacking. Sam On Thu, Sep 22, 2016 at 5:30 PM, Jack Firth wrote: > If I have a `raco` command that I want to add

[racket-users] Custom command completion?

2016-09-22 Thread Jack Firth
If I have a `raco` command that I want to add command completion too, how can I do that? Ideally I'm looking for some way to tell raco to dispatch to a particular function whenever shell completion is requested for any uses of my raco command. If there is no way to do this right now, what would