Skip to content

Commit ef7d414

Browse files
authored
chore: update example & readme (#138)
2 parents e08e7b5 + 6c555fc commit ef7d414

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changeset/stale-pans-approve.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

examples/basic/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ async function main() {
3232
p.select({
3333
message: `Pick a project type within "${results.path}"`,
3434
initialValue: 'ts',
35+
maxItems: 5,
3536
options: [
3637
{ value: 'ts', label: 'TypeScript' },
3738
{ value: 'js', label: 'JavaScript' },
39+
{ value: 'rust', label: 'Rust' },
40+
{ value: 'go', label: 'Go' },
41+
{ value: 'python', label: 'Python' },
3842
{ value: 'coffee', label: 'CoffeeScript', hint: 'oh no' },
3943
],
4044
}),
@@ -66,7 +70,7 @@ async function main() {
6670
if (project.install) {
6771
const s = p.spinner();
6872
s.start('Installing via pnpm');
69-
await setTimeout(5000);
73+
await setTimeout(2500);
7074
s.stop('Installed via pnpm');
7175
}
7276

packages/prompts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ import { spinner } from '@clack/prompts';
117117

118118
const s = spinner();
119119
s.start('Installing via npm');
120-
// Do installation
120+
// Do installation here
121121
s.stop('Installed via npm');
122122
```
123123

0 commit comments

Comments
 (0)