You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Check out the [examples directory](./examples) for complete examples of using Ta
15
15
## Usage
16
16
17
17
```ts
18
-
import { Completion, script } from'@bombsh/tab';
18
+
import { Completion, script } from'@bomb.sh/tab';
19
19
20
20
const name ='my-cli';
21
21
const completion =newCompletion();
@@ -70,11 +70,11 @@ Now your user can run `source <(my-cli complete zsh)` and they will get completi
70
70
71
71
Since we are heavy users of tools like `cac` and `citty`, we have created adapters for both of them. Ideally, tab would be integrated internally into these tools, but for now, this is a good compromise.
72
72
73
-
### `@bombsh/tab/cac`
73
+
### `@bomb.sh/tab/cac`
74
74
75
75
```ts
76
76
importcacfrom'cac';
77
-
importtabfrom'@bombsh/tab/cac';
77
+
importtabfrom'@bomb.sh/tab/cac';
78
78
79
79
const cli =cac('my-cli');
80
80
@@ -105,11 +105,11 @@ Now autocompletion will be available for any specified command and option in you
105
105
106
106
Suggestions are missing in the adapters since yet cac or citty do not have a way to provide suggestions (tab just came out!), we'd have to provide them manually. Mutations do not hurt in this situation.
0 commit comments