feat: make development builds visibly identifiable

This commit is contained in:
gitea committed 2026-09-13 14:24:27 +08:00
1 parent 0554f41d12
commit 2ed9bf0236
13 files changed
+285 -35

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { VERSION } from "../version.js";
import { VERSION_INFO, formatVersionLabel } from "../version.js";
import { parseArgs, stringOption, booleanOption, outputOptions } from "./parser.js";
import { printHelp, printJson, redactSensitiveText } from "./printer.js";
import { classifyCliError } from "./errors.js";
@@ -144,7 +144,7 @@ async function dispatchCli(
if (isVersionRequested(parsed)) {
return {
stdout: jsonMode ? printJson({ name: "hose-use", version: VERSION }) : `hose-use v${VERSION}\n`,
stdout: jsonMode ? printJson(VERSION_INFO) : `${formatVersionLabel("hose-use")}\n`,
stderr: "",
exitCode: 0,
};