-
Notifications
You must be signed in to change notification settings - Fork 39
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
Create a new output file for the result of autogen #106
Comments
I chose to set it up as an in-place operation because I didn't want to have two copies of code files. I thought it would be weird if the files that one saw in the root of a repo were either:
If you think that there are better ways of doing it, feel free to try it out; I'd be happy to discuss. |
I feel the same way about having two copies of essentially the same content. Maybe the better choice is an option to |
It should be easy to wrap this into a script. Stripping the code should not be needed often, so that could work for occasional inspection. |
It should be pretty easy to add a flag to empty autogen-ed content, although at the moment I don't have a command-line parser in place in that script; I just split the command-line content by space and assume they are autogen groups. I'll have to implement something better... |
I think rather than add complexity to the |
@WasabiFan - I read about different command line parsing libs for I don't program with It's more elegant than monkeying around with linking to blank templates. |
Sure; I'll look through the options and implement something. Give me a day to find some free time and I'd be happy to check it out. |
Good morning, @WasabiFan "Commander" looks fine to add command-line features. If you need some help, I could help you, I work in the day with Node.js Cheers |
I was looking at |
yargs is a great choice. I replaced commander in some project by yargs (if I recall right because yargs had support for boolean args). |
@rhempel Pull and check out my changes -- I added calls to yargs (which is the library I've used in the past) and included a flag to clear the templated sections. That flag can either be I haven't added the config to tell yargs to offer command help with useful messages yet. P.S. This is the first time I have pulled on this machine since we switched the python submodule. When I run
Usually, I'd take that as a sign that someone hadn't pushed their commits -- but that commit is clearly there on GitHub. Any ideas? |
|
you might have to manually update the submodule under your |
I also need to update the official |
@rhempel Did we get this resolved with the additional command?
@dlech In the end I just accepted that it was out of my realm and resorted to standard tactics. |
I think it would be a good idea to have
autogen
not overwrite the input file so that it's easier to figure out what's hand-written and what isautogen
ed.On the other hand, maybe an option to
autogen
that strips out theautogen
ed code would work as well.I am going to see if either method makes sense.
The text was updated successfully, but these errors were encountered: