Skip to content

Commit ecdf2be

Browse files
committed
refactor(with-subcommands-help): colocate 5 internal helpers (drop unused exports)
1 parent aa15585 commit ecdf2be

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/cli/src/util/cli/with-subcommands-help.mts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function buildHelpLines(opts: BuildHelpLinesOptions): string[] {
140140
return lines
141141
}
142142

143-
export function describeOrFallback(
143+
function describeOrFallback(
144144
cmd: CliSubcommand | undefined,
145145
fallback: string,
146146
): string {
@@ -153,7 +153,7 @@ export function describeOrFallback(
153153
*
154154
* Hidden commands and commands without a bucket assignment are excluded.
155155
*/
156-
export function groupCommandsByBucket(
156+
function groupCommandsByBucket(
157157
subcommands: Record<string, CliSubcommand>,
158158
buckets: CliBuckets,
159159
): Map<CliBucket, string[]> {
@@ -181,11 +181,11 @@ export function groupCommandsByBucket(
181181
return grouped
182182
}
183183

184-
export function hasHeroRows(bucket: CliBucket): boolean {
184+
function hasHeroRows(bucket: CliBucket): boolean {
185185
return bucket === 'main'
186186
}
187187

188-
export function pushEnvironmentVariables(
188+
function pushEnvironmentVariables(
189189
lines: string[],
190190
argv: readonly string[],
191191
): void {
@@ -239,7 +239,7 @@ export function pushEnvironmentVariables(
239239
* "hero" rows in the Main bucket that aren't standalone commands (e.g. `socket
240240
* scan create`, `socket npm/<purl>`).
241241
*/
242-
export function pushRootBucketedLayout(
242+
function pushRootBucketedLayout(
243243
lines: string[],
244244
subcommands: Record<string, CliSubcommand>,
245245
buckets: CliBuckets,

0 commit comments

Comments
 (0)