Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/tab/api/core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This page provides the complete API reference for the Tab core package, includin
The main class for managing command and option completions. This is the primary entry point for defining your CLI structure.

```ts
import { RootCommand } from '@bombsh/tab';
import { RootCommand } from '@bomb.sh/tab';

const t = new RootCommand();
```
Expand Down Expand Up @@ -274,7 +274,7 @@ Here's a complete example showing all the core API features:

```ts
#!/usr/bin/env node
import { RootCommand } from '@bombsh/tab';
import { RootCommand } from '@bomb.sh/tab';

const t = new RootCommand();

Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/tab/basics/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ Install Tab using your preferred package manager:
<Tabs>
<TabItem label="npm" icon="seti:npm">
```bash
npm install @bombsh/tab
npm install @bomb.sh/tab
```
</TabItem>
<TabItem label="pnpm" icon="pnpm">
```bash
pnpm add @bombsh/tab
pnpm add @bomb.sh/tab
```
</TabItem>
<TabItem label="Yarn" icon="seti:yarn">
```bash
yarn add @bombsh/tab
yarn add @bomb.sh/tab
```
</TabItem>
</Tabs>
Expand All @@ -34,7 +34,7 @@ Install Tab using your preferred package manager:
Here's a simple example of how to add autocompletions to your CLI:

```ts
import { RootCommand } from '@bombsh/tab';
import { RootCommand } from '@bomb.sh/tab';

const t = new RootCommand();

Expand Down Expand Up @@ -183,7 +183,7 @@ Tab also provides a standalone CLI tool that enhances package manager completion
### Installing the Tab CLI

```bash
npm install -g @bombsh/tab
npm install -g @bomb.sh/tab
```

### Setting Up Package Manager Completions
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/tab/guides/adapters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The CAC adapter automatically detects commands and options from your CAC instanc

```ts
import cac from 'cac';
import tab from '@bombsh/tab/cac';
import tab from '@bomb.sh/tab/cac';

const cli = cac('my-cli');

Expand Down Expand Up @@ -60,7 +60,7 @@ The Citty adapter works with Citty's command definitions and provides a similar

```ts
import { defineCommand, createMain } from 'citty';
import tab from '@bombsh/tab/citty';
import tab from '@bomb.sh/tab/citty';

const main = defineCommand({
meta: {
Expand Down Expand Up @@ -130,7 +130,7 @@ The Commander adapter works with Commander.js and provides completion handlers f

```ts
import { Command } from 'commander';
import tab from '@bombsh/tab/commander';
import tab from '@bomb.sh/tab/commander';

const program = new Command();

Expand Down Expand Up @@ -182,7 +182,7 @@ The Commander adapter:
All adapters support a configuration object to customize completion behavior:

```ts
import { CompletionConfig } from '@bombsh/tab';
import { CompletionConfig } from '@bomb.sh/tab';

const config: CompletionConfig = {
handler: async (previousArgs, toComplete, endsWithSpace) => {
Expand Down
14 changes: 7 additions & 7 deletions src/content/docs/tab/guides/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A simple CLI tool with basic autocompletions:

```ts
#!/usr/bin/env node
import { RootCommand } from '@bombsh/tab';
import { RootCommand } from '@bomb.sh/tab';

const t = new RootCommand();

Expand Down Expand Up @@ -94,7 +94,7 @@ A more complex CLI using CAC with Tab integration:
```ts
#!/usr/bin/env node
import cac from 'cac';
import tab from '@bombsh/tab/cac';
import tab from '@bomb.sh/tab/cac';

const cli = cac('my-cli');

Expand Down Expand Up @@ -171,7 +171,7 @@ A CLI using Citty with Tab integration:
```ts
#!/usr/bin/env node
import { defineCommand, createMain } from 'citty';
import tab from '@bombsh/tab/citty';
import tab from '@bomb.sh/tab/citty';

const main = defineCommand({
meta: {
Expand Down Expand Up @@ -247,7 +247,7 @@ A CLI using Commander.js with Tab integration:
```ts
#!/usr/bin/env node
import { Command } from 'commander';
import tab from '@bombsh/tab/commander';
import tab from '@bomb.sh/tab/commander';

const program = new Command();

Expand Down Expand Up @@ -311,7 +311,7 @@ Load completions from the file system:

```ts
import { readdir } from 'fs/promises';
import { RootCommand } from '@bombsh/tab';
import { RootCommand } from '@bomb.sh/tab';

const t = new RootCommand();

Expand Down Expand Up @@ -371,7 +371,7 @@ Dynamically load completions from package.json:

```ts
import { readFile } from 'fs/promises';
import { RootCommand } from '@bombsh/tab';
import { RootCommand } from '@bomb.sh/tab';

const t = new RootCommand();

Expand All @@ -396,7 +396,7 @@ Handle monorepo workspace completions:

```ts
import { readFile, readdir } from 'fs/promises';
import { RootCommand } from '@bombsh/tab';
import { RootCommand } from '@bomb.sh/tab';

const t = new RootCommand();

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/tab/guides/package-managers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For basic setup instructions, see the [Getting Started](/docs/tab/basics/getting

```bash
# Install and configure
npm install -g @bombsh/tab
npm install -g @bomb.sh/tab
tab pnpm zsh > ~/.zsh_completions/tab-pnpm.zsh
echo 'source ~/.zsh_completions/tab-pnpm.zsh' >> ~/.zshrc
```
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/tab/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Tab is a powerful tool that brings shell autocompletions to JavaScript CLI tools
Add shell autocompletions to your CLI in just a few lines:

```ts
import { RootCommand, script } from '@bombsh/tab';
import { RootCommand, script } from '@bomb.sh/tab';

const t = new RootCommand();

Expand Down Expand Up @@ -74,7 +74,7 @@ Get enhanced package manager completions with automatic CLI discovery:

```bash
# Install tab CLI
npm install -g @bombsh/tab
npm install -g @bomb.sh/tab

# Generate completions for your preferred package manager
tab pnpm zsh > ~/.zsh_completions/tab-pnpm.zsh
Expand Down