fixup! Move updater to REST api.

This commit is contained in:
2025-12-07 15:31:03 +00:00
parent be189187ba
commit b80929ff52
2 changed files with 17 additions and 2 deletions
+11 -1
View File
@@ -89,10 +89,20 @@ Flags:
-r, --repository string Remote repository URL. (default "https://github.com/lukaszraczylo/simple-gql-client")
-b, --branch string Remote repository URL Branch. (default "main")
-s, --strict Strict matching
-u, --update Update binary with latest
-u, --update Update binary with latest (no authentication required)
-v, --version Display version
```
##### Self-Update
The binary can update itself to the latest version:
```bash
semver-gen -u
```
This downloads the latest release for your platform directly from GitHub releases. No authentication is required.
#### As a github action
```yaml
+6 -1
View File
@@ -307,7 +307,10 @@ semver-gen generate -l -c semver.yaml
semver-gen generate -l -s
<span class="text-gray-400"># Respect existing tags</span>
semver-gen generate -l -e</code></pre>
semver-gen generate -l -e
<span class="text-gray-400"># Self-update to latest version (no auth required)</span>
semver-gen -u</code></pre>
<div class="grid sm:grid-cols-2 gap-4 text-sm">
<div>
<h4 class="font-medium text-gray-900 dark:text-gray-100 mb-2">Flags</h4>
@@ -318,6 +321,8 @@ semver-gen generate -l -e</code></pre>
<li><code class="text-emerald-600 dark:text-emerald-400">-s, --strict</code> Strict matching</li>
<li><code class="text-emerald-600 dark:text-emerald-400">-e, --existing</code> Respect existing tags</li>
<li><code class="text-emerald-600 dark:text-emerald-400">-d, --debug</code> Enable debug mode</li>
<li><code class="text-emerald-600 dark:text-emerald-400">-u, --update</code> Self-update to latest version</li>
<li><code class="text-emerald-600 dark:text-emerald-400">-v, --version</code> Display current version</li>
</ul>
</div>
</div>