Skip to content

Commit 5c7362f

Browse files
committed
refactor: trim cli shape exports
1 parent 01c384c commit 5c7362f

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/cli/container-target.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type CliContainerParseResult =
1010
| { ok: true; container: string | null; argv: string[] }
1111
| { ok: false; error: string };
1212

13-
export type CliContainerTargetResult =
13+
type CliContainerTargetResult =
1414
| { handled: true; exitCode: number }
1515
| { handled: false; argv: string[] };
1616

src/cli/daemon-cli-compat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const LEGACY_DAEMON_CLI_EXPORTS = [
1+
const LEGACY_DAEMON_CLI_EXPORTS = [
22
"registerDaemonCli",
33
"runDaemonInstall",
44
"runDaemonRestart",
@@ -10,7 +10,7 @@ export const LEGACY_DAEMON_CLI_EXPORTS = [
1010

1111
type LegacyDaemonCliExport = (typeof LEGACY_DAEMON_CLI_EXPORTS)[number];
1212
type LegacyDaemonCliRunnerExport = Exclude<LegacyDaemonCliExport, "registerDaemonCli">;
13-
export type LegacyDaemonCliAccessors = {
13+
type LegacyDaemonCliAccessors = {
1414
registerDaemonCli: string;
1515
runDaemonRestart: string;
1616
} & Partial<

src/cli/debug-timing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type TimingPayload = {
1616
type TimingWriter = (line: string) => void;
1717
type NonPromise<T> = T extends PromiseLike<unknown> ? never : T;
1818

19-
export type CliDebugTiming = {
19+
type CliDebugTiming = {
2020
enabled: boolean;
2121
mark: (phase: string, details?: TimingDetails) => void;
2222
time: <T>(

src/cli/parse-bytes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
normalizeOptionalString,
44
} from "../shared/string-coerce.js";
55

6-
export type BytesParseOptions = {
6+
type BytesParseOptions = {
77
defaultUnit?: "b" | "kb" | "mb" | "gb" | "tb";
88
};
99

src/cli/plugin-install-config-policy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { loadPluginManifest } from "../plugins/manifest.js";
66
import { resolveUserPath } from "../utils.js";
77
import { parseNpmPrefixSpec, resolveFileNpmSpecToLocalPath } from "./plugins-command-helpers.js";
88

9-
export type PluginInstallInvalidConfigPolicy = "deny" | "allow-bundled-recovery";
9+
type PluginInstallInvalidConfigPolicy = "deny" | "allow-bundled-recovery";
1010

1111
export type PluginInstallRequestContext = {
1212
rawSpec: string;

src/cli/profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { isValidProfileName } from "./profile-utils.js";
1111
import { scanCliRootOptions } from "./root-option-scan.js";
1212
import { takeCliRootOptionValue } from "./root-option-value.js";
1313

14-
export type CliProfileParseResult =
14+
type CliProfileParseResult =
1515
| { ok: true; profile: string | null; argv: string[] }
1616
| { ok: false; error: string };
1717

src/cli/root-option-scan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FLAG_TERMINATOR } from "../infra/cli-root-options.js";
22
import { forwardConsumedCliRootOption } from "./root-option-forward.js";
33

4-
export type CliRootOptionScanResult = { ok: true; argv: string[] } | { ok: false; error: string };
4+
type CliRootOptionScanResult = { ok: true; argv: string[] } | { ok: false; error: string };
55

66
type CliRootOptionVisitResult =
77
| { kind: "pass" }

0 commit comments

Comments
 (0)