Skip to content

Commit 533b1bc

Browse files
committed
Update README.md
1 parent 09f95ac commit 533b1bc

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,32 @@ The command provides several options to work with version strings:
4949
<tr>
5050
<td><code>validate</code></td>
5151
<td>Validates the given version string against the SemVer specification.</td>
52-
<td><code>version&nbsp;validate&nbsp;v1.0.0</code></td>
52+
<td><code>version&nbsp;validate&nbsp;1.0.0</code></td>
5353
</tr>
5454
<tr>
5555
<td><code>increment</code></td>
5656
<td>Increments the version string by major, minor, or patch.</td>
57-
<td><code>version&nbsp;increment&nbsp;v1.0.0</code></td>
57+
<td><code>version&nbsp;increment&nbsp;1.0.0</code></td>
5858
</tr>
5959
<tr>
6060
<td><code>gt</code></td>
6161
<td>Compares two version strings to see if the first is greater than the second.</td>
62-
<td><code>version&nbsp;gt&nbsp;v1.0.0&nbspv0.9.0</code></td>
62+
<td><code>version&nbsp;gt&nbsp;1.0.0&nbsp;0.9.0</code></td>
63+
</tr>
64+
<tr>
65+
<td><code>lt</code></td>
66+
<td>Compares two version strings to see if the first is less than the second.</td>
67+
<td><code>version&nbsp;lt&nbsp;1.0.0&nbsp;0.9.0</code></td>
68+
</tr>
69+
<tr>
70+
<td><code>eq</code></td>
71+
<td>Compares two version strings to see if they are equal.</td>
72+
<td><code>version&nbsp;eq&nbsp;1.0.0&nbsp;1.0.0</code></td>
6373
</tr>
6474
</tbody>
6575
</table>
6676

67-
For more details on each command,you can run:
77+
The command supports both patterns with or without the `v` prefix, so you can use `1.0.0` or `v1.0.0`. For more details on each command, you can run:
6878

6979
```bash
7080
version list

0 commit comments

Comments
 (0)