> Right, thank you for bringing that up. I should have mentioned that the #lang > provides all of racket/base at the module level, so you can write normal > Racket code (including `require`), and any imports at the module level would > be available within the `program` body since it compiles down to a normal > function. > > You can also use `provide`, so once you define your command using `program`, > you can provide it the same as any function. The client module requiring your > command would need to be a #lang cli module (at least at the moment) so that > it can actually run the imported command using `run`.
That would be good to add to the docs in my opinion. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CALnO6CAsxaJ%3DHsPJE1ZnOJXs9yVobiRiSBOj9UV4cxC%2BLRqiiw%40mail.gmail.com.

