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

customise template instantiation #8

Open
spdegabrielle opened this issue Sep 17, 2020 · 5 comments
Open

customise template instantiation #8

spdegabrielle opened this issue Sep 17, 2020 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@spdegabrielle
Copy link
Collaborator

spdegabrielle commented Sep 17, 2020

Extend raco new to support additional arguments to customise template instantiation
e.g. renaming main.scrbl to $PACKAGE-NAME.scrbl

extension options:

  • 'template variables' using e.g. scribble/text
  • Maybe the raco new(prev raco from-template) command could look for some optional .from-template.rkt code in the template, and if found, run it.
  • raco scaffold already has sophisticated facilities to generate code https://docs.racket-lang.org/scaffold/

Suggestions from @samth @greghendershott @sorawee on racket slack 17-Sep-2020

@spdegabrielle spdegabrielle added enhancement New feature or request help wanted Extra attention is needed labels Sep 17, 2020
@nixin72
Copy link
Owner

nixin72 commented Sep 22, 2020

How about having prompts at the terminal to change different options? Something similar to when you run npm init and you change a bunch of settings for your project. Can add a -i flag to tell it when to interactively let you change certain things.

@spdegabrielle
Copy link
Collaborator Author

That is a great idea!

@spdegabrielle
Copy link
Collaborator Author

I think 'charterm' will be helpful for interactive prompt stuff.

@nixin72
Copy link
Owner

nixin72 commented Sep 24, 2020

Sounds good! I'm getting started on this now 👍

@nixin72
Copy link
Owner

nixin72 commented Sep 24, 2020

After taking a very brief look at charterm, I think that'll be a little overkill for this honestly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants