# Generate \`script/storybook\` \(\#3652\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/08418618abadfba593478761a0a16adb72e0b239)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 08418618abadfba593478761a0a16adb72e0b239

Requested commit: 08418618abadfba593478761a0a16adb72e0b239

Commit: 08418618abadfba593478761a0a16adb72e0b239

Tree: 5786115000d7115e72ca26c7495744b80bf85024

Author: Nate Butler

Committer: GitHub

## Message

````
Generate `script/storybook` (#3652)

[[PR Description]]

This PR adds the ability to run stories with `script/storybook`.

Running it directly will give you a selector like this:

```zsh
➜  zed git:(add-storybook-script) script/storybook
1) auto_height_editor	 9) icon		17) scroll
2) avatar		10) icon_button		18) tab
3) button		11) keybinding		19) tab_bar
4) checkbox		12) label		20) text
5) context_menu		13) list		21) viewport_units
6) cursor		14) list_header		22) z_index
7) disclosure		15) list_item		23) picker
8) focus		16) overflow_scroll
```

You can also provide a value like:

`script/storybook {STORY_NAME}` - Example: `script/storybook text`

OR 

`script/storybook components/{STORY_NAME}` - Example: `script/storybook
components/text`

I just wanted an easier way to interface with stories quickly to make
using them a bit easier, and enable discovery of what exists easier with
the selector.

This was a really quick hack, in the future we can extend this to a
proper CLI.

Release Notes:

- N/A
````

## Parents

- [da960fffe716475ec6bdfd9497bf57dfce9e2694](https://git.cafe/gitcafe/zed/commit/da960fffe716475ec6bdfd9497bf57dfce9e2694?format=markdown)

- [ac3622cc6a19161b717947c112d6232e9265c3d7](https://git.cafe/gitcafe/zed/commit/ac3622cc6a19161b717947c112d6232e9265c3d7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/08418618abadfba593478761a0a16adb72e0b239?format=markdown)
