Skip to content

rename 'plugin add' command to 'add' #1373 #1606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2023
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
14 changes: 7 additions & 7 deletions src/content/docs/2/reference/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ For CLI commands related to developing plugins visit the [Develop a Tauri Plugin
| [`icon`](#icon) | Generates various icons for all major platforms |
| [`info`](#info) | Shows information about Tauri dependencies and project configuration |
| [`init`](#init) | Initializes a Tauri project |
| [`plugin add`](#plugin-add) | Manage Tauri plugins |
| [`add`](#add) | Manage Tauri plugins |
| [`signer`](#signer) | Tauri updater signer |
| [`completions`](#completions) | Shell completions |
| [`ios`](#ios) | iOS commands |
Expand Down Expand Up @@ -216,19 +216,19 @@ Options:
Print version
```

## `plugin add`
## `add`

<CommandTabs
npm="npm tauri plugin add"
yarn="yarn tauri plugin add"
pnpm="pnpm tauri plugin add"
cargo="cargo tauri plugin add"
npm="npm tauri add"
yarn="yarn tauri add"
pnpm="pnpm tauri add"
cargo="cargo tauri add"
/>

```
Installs a plugin on the project

Usage: cargo tauri plugin add [OPTIONS] <PLUGIN>
Usage: cargo tauri add [OPTIONS] <PLUGIN>

Arguments:
<PLUGIN> The plugin to add
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/features/notification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Install the notifications plugin to get started.

1. Use your project's package manager to add the dependency:

<CommandTabs npm="npm run tauri plugin add notification"
yarn="yarn run tauri plugin add notification"
pnpm="pnpm tauri plugin add notification"
cargo="cargo tauri plugin add notification" />
<CommandTabs npm="npm run tauri add notification"
yarn="yarn run tauri add notification"
pnpm="pnpm tauri add notification"
cargo="cargo tauri add notification" />

2. Modify `lib.rs` to initialize the plugin:

Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/fr/features/notification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Pour commencer, installez le plugin de notifications.

1. Utilisez le gestionnaire de package (package manager) de votre projet pour ajouter la dépendance:

<CommandTabs npm="npm run tauri plugin add notification"
yarn="yarn run tauri plugin add notification"
pnpm="pnpm tauri plugin add notification"
cargo="cargo tauri plugin add notification" />
<CommandTabs npm="npm run tauri add notification"
yarn="yarn run tauri add notification"
pnpm="pnpm tauri add notification"
cargo="cargo tauri add notification" />

2. Modifiez `lib.rs` pour initialiser le plugin:

Expand Down