refactor: trim cli shape exports

This commit is contained in:
Peter Steinberger
2026-05-01 22:08:36 +01:00
parent 01c384cbf9
commit 5c7362fe9d
7 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ type CliContainerParseResult =
| { ok: true; container: string | null; argv: string[] }
| { ok: false; error: string };
export type CliContainerTargetResult =
type CliContainerTargetResult =
| { handled: true; exitCode: number }
| { handled: false; argv: string[] };

View File

@@ -1,4 +1,4 @@
export const LEGACY_DAEMON_CLI_EXPORTS = [
const LEGACY_DAEMON_CLI_EXPORTS = [
"registerDaemonCli",
"runDaemonInstall",
"runDaemonRestart",
@@ -10,7 +10,7 @@ export const LEGACY_DAEMON_CLI_EXPORTS = [
type LegacyDaemonCliExport = (typeof LEGACY_DAEMON_CLI_EXPORTS)[number];
type LegacyDaemonCliRunnerExport = Exclude<LegacyDaemonCliExport, "registerDaemonCli">;
export type LegacyDaemonCliAccessors = {
type LegacyDaemonCliAccessors = {
registerDaemonCli: string;
runDaemonRestart: string;
} & Partial<

View File

@@ -16,7 +16,7 @@ type TimingPayload = {
type TimingWriter = (line: string) => void;
type NonPromise<T> = T extends PromiseLike<unknown> ? never : T;
export type CliDebugTiming = {
type CliDebugTiming = {
enabled: boolean;
mark: (phase: string, details?: TimingDetails) => void;
time: <T>(

View File

@@ -3,7 +3,7 @@ import {
normalizeOptionalString,
} from "../shared/string-coerce.js";
export type BytesParseOptions = {
type BytesParseOptions = {
defaultUnit?: "b" | "kb" | "mb" | "gb" | "tb";
};

View File

@@ -6,7 +6,7 @@ import { loadPluginManifest } from "../plugins/manifest.js";
import { resolveUserPath } from "../utils.js";
import { parseNpmPrefixSpec, resolveFileNpmSpecToLocalPath } from "./plugins-command-helpers.js";
export type PluginInstallInvalidConfigPolicy = "deny" | "allow-bundled-recovery";
type PluginInstallInvalidConfigPolicy = "deny" | "allow-bundled-recovery";
export type PluginInstallRequestContext = {
rawSpec: string;

View File

@@ -11,7 +11,7 @@ import { isValidProfileName } from "./profile-utils.js";
import { scanCliRootOptions } from "./root-option-scan.js";
import { takeCliRootOptionValue } from "./root-option-value.js";
export type CliProfileParseResult =
type CliProfileParseResult =
| { ok: true; profile: string | null; argv: string[] }
| { ok: false; error: string };

View File

@@ -1,7 +1,7 @@
import { FLAG_TERMINATOR } from "../infra/cli-root-options.js";
import { forwardConsumedCliRootOption } from "./root-option-forward.js";
export type CliRootOptionScanResult = { ok: true; argv: string[] } | { ok: false; error: string };
type CliRootOptionScanResult = { ok: true; argv: string[] } | { ok: false; error: string };
type CliRootOptionVisitResult =
| { kind: "pass" }