Skip to content

Conversation

@benallfree
Copy link
Contributor

@crutchcorn I'm curious to see what you think of this PR.

It adds an onProgress hook and makes it available to be called from custom action handlers like this:

const myCustomAction =  async (answers, config, plop)=>{
   const { onProgress } = config
   onProgress(`Starting action`)
   return new Promise(resolve=>{
      setTimeout(()=>resolve(`Finished action`),1000)
   }
}

@benallfree benallfree changed the title Add onProgress hook enhancement: add onProgress hook Apr 21, 2024
@benallfree benallfree changed the title enhancement: add onProgress hook feat: add onProgress hook Apr 21, 2024
@benallfree benallfree marked this pull request as draft April 21, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant