-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.ts
61 lines (55 loc) · 1.42 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* All valid Git hooks as a constant array.
*/
export const HOOKS = [
'applypatch-msg',
'pre-applypatch',
'post-applypatch',
'pre-commit',
'pre-merge-commit',
'prepare-commit-msg',
'commit-msg',
'post-commit',
'pre-rebase',
'post-checkout',
'post-merge',
'pre-push',
'pre-receive',
'update',
'proc-receive',
'post-receive',
'post-update',
'reference-transaction',
'push-to-checkout',
'pre-auto-gc',
'post-rewrite',
'sendemail-validate',
'fsmonitor-watchman',
'p4-changelist',
'p4-prepare-changelist',
'p4-post-changelist',
'p4-pre-submit',
'post-index-change',
] as const;
/**
* Denoh version.
*/
export const VERSION = '3.2.0';
/**
* Help text for denoh CLI.
*/
export const HELP_TEXT = `
denoh - Generate Git hooks by extending Deno's configuration file.
Usage:
denoh [config file or path, default: ./] [flags]
Flags:
-g => Where to generate Git hooks. [default: <config path>/.git/hooks]
-h|--help => Shows this message
-V => Shows current version of denoh
Examples:
denoh # Creates hooks in the current folder
denoh .. # Looks for hooks in specified (in this case, previous) folder, creates them there
denoh deno.jsonc # Scans specified file and creates hooks where the file is
denoh ../meow -g meow-hooks # Looks for hooks in previous meow folder, creates hooks to current \`meow-hooks\` folder
Source Code:
https://github.com/catuhana/denoh`;