Skip to content

Commit 912c7fb

Browse files
committed
test(cz-commit-command): add preview option to commit help and config
1 parent 5dc4cec commit 912c7fb

6 files changed

Lines changed: 12 additions & 5 deletions

tests/commands/test_common_command/test_command_shows_description_when_use_help_option_py_3_10_commit_.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
22
[--write-message-to-file FILE_PATH] [-s] [-a] [-e]
3-
[-l MESSAGE_LENGTH_LIMIT] [--]
3+
[-l MESSAGE_LENGTH_LIMIT] [--preview] [--]
44

55
Create new commit
66

@@ -22,4 +22,5 @@ options:
2222
-l MESSAGE_LENGTH_LIMIT, --message-length-limit MESSAGE_LENGTH_LIMIT
2323
Set the length limit of the commit message; 0 for no
2424
limit.
25+
--preview Show live first-line (subject) preview while typing.
2526
-- Positional arguments separator (recommended).

tests/commands/test_common_command/test_command_shows_description_when_use_help_option_py_3_11_commit_.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
22
[--write-message-to-file FILE_PATH] [-s] [-a] [-e]
3-
[-l MESSAGE_LENGTH_LIMIT] [--]
3+
[-l MESSAGE_LENGTH_LIMIT] [--preview] [--]
44

55
Create new commit
66

@@ -22,4 +22,5 @@ options:
2222
-l MESSAGE_LENGTH_LIMIT, --message-length-limit MESSAGE_LENGTH_LIMIT
2323
Set the length limit of the commit message; 0 for no
2424
limit.
25+
--preview Show live first-line (subject) preview while typing.
2526
-- Positional arguments separator (recommended).

tests/commands/test_common_command/test_command_shows_description_when_use_help_option_py_3_12_commit_.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
22
[--write-message-to-file FILE_PATH] [-s] [-a] [-e]
3-
[-l MESSAGE_LENGTH_LIMIT] [--]
3+
[-l MESSAGE_LENGTH_LIMIT] [--preview] [--]
44

55
Create new commit
66

@@ -22,4 +22,5 @@ options:
2222
-l MESSAGE_LENGTH_LIMIT, --message-length-limit MESSAGE_LENGTH_LIMIT
2323
Set the length limit of the commit message; 0 for no
2424
limit.
25+
--preview Show live first-line (subject) preview while typing.
2526
-- Positional arguments separator (recommended).

tests/commands/test_common_command/test_command_shows_description_when_use_help_option_py_3_13_commit_.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
22
[--write-message-to-file FILE_PATH] [-s] [-a] [-e]
3-
[-l MESSAGE_LENGTH_LIMIT] [--]
3+
[-l MESSAGE_LENGTH_LIMIT] [--preview] [--]
44

55
Create new commit
66

@@ -22,4 +22,5 @@ options:
2222
-l, --message-length-limit MESSAGE_LENGTH_LIMIT
2323
Set the length limit of the commit message; 0 for no
2424
limit.
25+
--preview Show live first-line (subject) preview while typing.
2526
-- Positional arguments separator (recommended).

tests/commands/test_common_command/test_command_shows_description_when_use_help_option_py_3_14_commit_.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
22
[--write-message-to-file FILE_PATH] [-s] [-a] [-e]
3-
[-l MESSAGE_LENGTH_LIMIT] [--]
3+
[-l MESSAGE_LENGTH_LIMIT] [--preview] [--]
44

55
Create new commit
66

@@ -22,4 +22,5 @@ options:
2222
-l, --message-length-limit MESSAGE_LENGTH_LIMIT
2323
Set the length limit of the commit message; 0 for no
2424
limit.
25+
--preview Show live first-line (subject) preview while typing.
2526
-- Positional arguments separator (recommended).

tests/test_conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"template": None,
112112
"extras": {},
113113
"breaking_change_exclamation_in_title": False,
114+
"preview": False,
114115
"message_length_limit": 0,
115116
}
116117

@@ -151,6 +152,7 @@
151152
"template": None,
152153
"extras": {},
153154
"breaking_change_exclamation_in_title": False,
155+
"preview": False,
154156
"message_length_limit": 0,
155157
}
156158

0 commit comments

Comments
 (0)