Skip to content

Commit acc8d18

Browse files
committed
format
1 parent 3111a05 commit acc8d18

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- [2025-09-24] [format](https://github.com/RubricLab/cli/commit/0e2f53e69ca2b5668de4d5bd34a5326dc26e17fc)
12
- [2025-09-24] [touches, fixes](https://github.com/RubricLab/cli/commit/8c9981291684c9eaee20842b5cf692b3799178f5)
23
- [2025-09-24] [rm old file](https://github.com/RubricLab/cli/commit/1041d19da0188c9d642cb5937b3084f5f93fe767)
34
- [2025-09-24] [add ui](https://github.com/RubricLab/cli/commit/a809ae0177be8dfd9aa948b860e51a64fdf639db)

lib/help.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { z } from 'zod/v4'
22
import { format } from './colors'
33
import type { Command } from './types'
4-
import { he } from 'zod/locales'
54
import { heading } from './ui/heading'
65

76
export function showHelp({

lib/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import type { CLI, Command } from './types'
44
export { format } from './colors'
55

66
export * from './ui/heading'
7-
export * from './ui/text'
7+
export * from './ui/input'
88
export * from './ui/loader'
9-
export * from './ui/select'
109
export * from './ui/multi-select'
11-
export * from './ui/input'
10+
export * from './ui/select'
11+
export * from './ui/text'
1212

1313
import type { z } from 'zod/v4'
1414
export type { Command, CLI }

lib/parse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('parseArgs', () => {
7575
try {
7676
parseArgs({ argv, schema })
7777
} catch (error) {
78-
throw error.message
78+
throw (error as Error).message
7979
}
8080
}).toThrow('Missing value for flag --name')
8181
})

lib/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from 'zod/v4'
2+
import { format } from './colors'
23
import { showHelp } from './help'
34
import type { Command } from './types'
45
import { kebabToCamel } from './utils'
5-
import { format } from './colors'
66

77
export async function parseCommand({
88
commands,

lib/ui/heading.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ export function heading(text: string): void {
106106
}
107107
})
108108
process.stdout.write('\n')
109-
}
109+
}

lib/ui/input.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,21 @@ export async function textInput({
7777
label,
7878
defaultValue,
7979
schema = z.string(),
80-
isMasked = false,
80+
isMasked = false
8181
}: {
8282
label: string
8383
defaultValue: string
8484
schema?: ZodType<string>
8585
isMasked?: boolean
8686
}): Promise<string> {
87-
return ask({ defaultValue, isMasked, label, schema, placeholder: defaultValue })
87+
return ask({ defaultValue, isMasked, label, placeholder: defaultValue, schema })
8888
}
8989

9090
export async function passwordInput({
9191
label,
9292
defaultValue,
9393
schema = z.string(),
94-
isMasked = true,
94+
isMasked = true
9595
}: {
9696
label: string
9797
defaultValue: string

lib/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { ZodBoolean, ZodEnum, ZodNumber, ZodString, ZodType, z } from 'zod/v4'
1+
// import type { ZodBoolean, ZodEnum, ZodNumber, ZodString } from 'zod/v4'
22

33
export function kebabToCamel(str: string): string {
44
return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase())
55
}
66

7-
type Supported = ZodString /* */ | ZodNumber | ZodEnum /* select */ | ZodBoolean
7+
// type Supported = ZodString /* */ | ZodNumber | ZodEnum /* select */ | ZodBoolean

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"simple-git-hooks": {
2222
"post-commit": "bun x @rubriclab/package post-commit"
2323
},
24-
"version": "0.0.14"
24+
"version": "0.0.15"
2525
}

0 commit comments

Comments
 (0)