Re: Distributing raco command without `raco`

Sage Gerard <sage-nnKKxiom5Z1/[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <8-HS0DBcg8-n4hWLlk_Pu4uzFPVmYfHLJ9OtbFPFpG70V6ltIoZ-Qvv-Hhee9zm2bIuwjE4HAuQvYkMXz3TePB9bUNRFJnrLZMRKKhmNxhE=@sagegerard.com>
Perfect, thank you. I'll put up a PR to add that as a margin note in https://docs.racket-lang.org/raco/command.html

-------- Original Message --------
On Sep 15, 2019, 10:29 PM, Philip McGrath wrote:

> In your "info.rkt", define `racket-launcher-names` and `racket-launcher-libraries`, or `gracket-launcher-names` and `gracket-launcher-libraries` for a GUI app: https://docs.racket-lang.org/raco/setup-info.html#(idx._(gentag._14._(lib._scribblings%2Fraco%2Fraco..scrbl)))
>
> Note that this is handled by `raco setup`, not `raco pkg`, so you can do this in an "info.rkt" file in any collection, not just at the top level directory of the package. Here's an example "info.rkt" file from one of my packages that uses `gracket-launcher-names`: https://bitbucket.org/digitalricoeur/tei-utils/src/master/tei/tools/info.rkt
>
> -Philip
>
> On Sun, Sep 15, 2019 at 10:19 PM Sage Gerard <sage-nnKKxiom5Z1/[email protected]> wrote:
>
>> If I release a package `foo` and want to distribute a command with it, I can make it into a raco command where users have to keep typing `raco foo-command`, etc.
>>
>> Javascript and Python ecosystems let me write a package such that I can install `foo` and the users can just run `foo-command`.
>>
>> Is there a way to do the same in Racket without building an executable and dropping it into someone's PATH?
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
>> To view this discussion on the web visit [https://groups.google.com/d/msgid/racket-users/yjmAa_d-Ww-PD337y-cM_Y1aWngZN4iEpzawcnc1YwAgYx20D8-DKtEAut5D3UqwQ3iS7sJt0Mk9JsH_xLKQE4R1opMEhXa8FkzgaHojDCc%3D%40sagegerard.com](https://groups.google.com/d/msgid/racket-users/yjmAa_d-Ww-PD337y-cM_Y1aWngZN4iEpzawcnc1YwAgYx20D8-DKtEAut5D3UqwQ3iS7sJt0Mk9JsH_xLKQE4R1opMEhXa8FkzgaHojDCc%3D%40sagegerard.com?utm_medium=email&utm_source=footer).

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/8-HS0DBcg8-n4hWLlk_Pu4uzFPVmYfHLJ9OtbFPFpG70V6ltIoZ-Qvv-Hhee9zm2bIuwjE4HAuQvYkMXz3TePB9bUNRFJnrLZMRKKhmNxhE%3D%40sagegerard.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.