diff --git a/src/content/docs/tab/api/core.mdx b/src/content/docs/tab/api/core.mdx index 3da426f..b0b34f5 100644 --- a/src/content/docs/tab/api/core.mdx +++ b/src/content/docs/tab/api/core.mdx @@ -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(); ``` @@ -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(); diff --git a/src/content/docs/tab/basics/getting-started.mdx b/src/content/docs/tab/basics/getting-started.mdx index f898d8c..5207755 100644 --- a/src/content/docs/tab/basics/getting-started.mdx +++ b/src/content/docs/tab/basics/getting-started.mdx @@ -14,17 +14,17 @@ Install Tab using your preferred package manager: ```bash - npm install @bombsh/tab + npm install @bomb.sh/tab ``` ```bash - pnpm add @bombsh/tab + pnpm add @bomb.sh/tab ``` ```bash - yarn add @bombsh/tab + yarn add @bomb.sh/tab ``` @@ -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(); @@ -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 diff --git a/src/content/docs/tab/guides/adapters.mdx b/src/content/docs/tab/guides/adapters.mdx index 8bcf331..794e5b9 100644 --- a/src/content/docs/tab/guides/adapters.mdx +++ b/src/content/docs/tab/guides/adapters.mdx @@ -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'); @@ -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: { @@ -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(); @@ -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) => { diff --git a/src/content/docs/tab/guides/examples.mdx b/src/content/docs/tab/guides/examples.mdx index 7d9a502..8d94c1a 100644 --- a/src/content/docs/tab/guides/examples.mdx +++ b/src/content/docs/tab/guides/examples.mdx @@ -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(); @@ -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'); @@ -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: { @@ -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(); @@ -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(); @@ -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(); @@ -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(); diff --git a/src/content/docs/tab/guides/package-managers.mdx b/src/content/docs/tab/guides/package-managers.mdx index 408d12b..e9cccc3 100644 --- a/src/content/docs/tab/guides/package-managers.mdx +++ b/src/content/docs/tab/guides/package-managers.mdx @@ -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 ``` diff --git a/src/content/docs/tab/index.mdx b/src/content/docs/tab/index.mdx index 0e395db..46d6d5a 100644 --- a/src/content/docs/tab/index.mdx +++ b/src/content/docs/tab/index.mdx @@ -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(); @@ -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