Skip to content

Commit

Permalink
rename 'plugin add' command to 'add'
Browse files Browse the repository at this point in the history
  • Loading branch information
vasfvitor committed Oct 10, 2023
1 parent 9ab91ce commit 43a0070
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
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

0 comments on commit 43a0070

Please sign in to comment.