-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Commit files so I can re-generate the command #1092
Comments
Hej, I’m not sure that I understand what you trying to accomplish. You can check the API docs to see how to use the conflicter: http://yeoman.io/generator/Conflicter.html#checkForCollision For commiting files you can use something like https://github.com/steveukx/git-js |
Let's say I just have a prompting() function and that's it. That never returns, it's an infinite loop. However after I finish something, I want to run the file commit process (that actually commits mem-fs files). I did try yo.fs.commit() but does not work, and it's mentioned somewhere in the docs not to use it. Let's talk a common language:
|
Ah. Got it. Quoting the docs regarding the file system:
It sounds that you have a reason for calling the Here are the docs regarding commit(): You can pass a callback which is called when the files are written. |
I need to reach that stage somehow. Basically I would like for yeoman to proceed with the natural order of events, and before returning (quitting the process) hook-in a callback so I can get back into my loop. |
This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Hello!
I would like to know if there is a way to have a sort-of recursive generation process.
I use
autocomplete
to specify the commands, because it's much easier than to have the person remember it.yo my-generator
=> Displays auto-completed list of commandsAnd I want after a command completes, to sort-of restart it until he selects 'quit' command.
The problem I'm facing is with file commits. It is done when the process ends. Is there any way to trigger the file comitting (and conflict resolution) manually ?
The text was updated successfully, but these errors were encountered: