czg 1.7.1 → 1.8.1-beta.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -72,14 +72,20 @@ WEBSITE:
72
72
  https://github.com/Zhengqbbb/cz-git
73
73
 
74
74
  SYNOPSIS:
75
- czg [subcommand...] [options...] [git-commit-options...]
75
+ czg [flag|options...] [git-commit-options...] [type list item search keywords]
76
76
 
77
- SUBCOMMAND:
78
- ai Turn on OpenAI generate subject mode
79
- break Turn on appends a ! after the type/scope
80
- emoji Turn on output message with emoji mode
81
- checkbox Turn on scope checkbox mode
82
- gpg Turn on use GPG sign commit message
77
+ FLAG:
78
+ -r, --retry Directly retry submit by the last message
79
+ -a, --all Automatically stage files that have been modified and deleted (Not new files)
80
+ -b, --break Turn on appends a ! after the type/scope
81
+ -E, --emoji Turn on output message with emoji mode
82
+ -S, --gpg-sign Turn on use GPG sign commit message
83
+ -cb, --checkbox Turn on scope checkbox mode
84
+ -ai, --ai Turn on OpenAI generate subject mode
85
+ --no-ai Turn off OpenAI prompt mode in this session
86
+ --unset-proxy Unset request API proxy on local configure
87
+ -h, --help Show help
88
+ -v, --version Show version
83
89
 
84
90
  OPTIONS:
85
91
  :, --alias= Directly submit the defined commit message
@@ -90,21 +96,16 @@ OPTIONS:
90
96
  --api-key= Setup request OpenAI API secret key to local (.config/.czrc)
91
97
  --api-proxy= Setup request OpenAI API proxy to local (.config/.czrc)
92
98
  --api-endpoint= Setup request OpenAI API endpoint to local (.config/.czrc)
93
-
94
- FLAG:
95
- -r, --retry Directly retry submit by the last message
96
- --no-ai Turn off AI prompt mode in this session
97
- --unset-proxy Unset request API proxy on local configure
98
- -h, --help Show help
99
- -v, --version Show version
99
+ [default: "https://api.openai.com/v1"]
100
100
 
101
101
  EXAMPLES:
102
102
  czg
103
- czg emoji
103
+ czg ch | czg ix
104
+ czg -a -E
104
105
  czg :fd
105
106
  czg --config="./config/cz.json"
106
107
  czg --api-key="sk-XXXXX"
107
- czg ai -N=3
108
+ czg -ai -N=3
108
109
 
109
110
  Extends 'git commit' options.
110
111
  See 'git commit --help' for more information.
package/lib/config.d.ts CHANGED
@@ -269,7 +269,7 @@ interface CommitMessageOptions {
269
269
  }
270
270
  interface GenerateAIPromptType {
271
271
  type?: string;
272
- defaultScope?: string;
272
+ defaultScope?: string | string[];
273
273
  maxSubjectLength?: number;
274
274
  upperCaseSubject?: boolean;
275
275
  diff?: string;
@@ -557,11 +557,13 @@ interface CommitizenGitOptions {
557
557
  */
558
558
  defaultType?: string;
559
559
  /**
560
- * @description: Whether to use display default value in custom scope
560
+ * @description Whether to use display default value in custom scope
561
561
  * @tip pin scope item the top of the scope list (match item value)
562
+ *
563
+ * `string[]` for checkbox mode will default-select the options whose values match those within the `scopes` range list.
562
564
  * @example: When you want to use default, just keyboard <Enter> it
563
565
  */
564
- defaultScope?: string;
566
+ defaultScope?: string | string[];
565
567
  /**
566
568
  * @description: default value show subject template prompt
567
569
  * @example: If you want to use template complete. just keyboard <Tab> or <Right Arrow> it