Skip to content

Instantly share code, notes, and snippets.

@korzio
Created May 5, 2019 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korzio/7c3934248d89a86a7a0d4d462f8f4572 to your computer and use it in GitHub Desktop.
Save korzio/7c3934248d89a86a7a0d4d462f8f4572 to your computer and use it in GitHub Desktop.
oclif hook commit --event=commit
cat src/hooks/commit/commit.ts
import {Hook} from '@oclif/config'
const hook: Hook<'commit'> = async function (opts) {
process.stdout.write(`example hook running ${opts.id}\n`)
}
export default hook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment