Skip to content

Commit b821052

Browse files
roborourkedavidcole1340
authored andcommitted
Update readme and guides
1 parent b765726 commit b821052

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

crates/cli/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SUBCOMMANDS:
4040
Generates stub PHP files for the extension
4141
4242
$ cargo php install --help
43-
cargo-php-install
43+
cargo-php-install
4444
4545
Installs the extension in the current PHP installation.
4646
@@ -71,8 +71,11 @@ OPTIONS:
7171
--release
7272
Whether to install the release version of the extension
7373
74+
--yes
75+
Bypasses the confirmation prompt
76+
7477
$ cargo php remove --help
75-
cargo-php-remove
78+
cargo-php-remove
7679
7780
Removes the extension in the current PHP installation.
7881
@@ -97,8 +100,11 @@ OPTIONS:
97100
Path to the Cargo manifest of the extension. Defaults to the manifest in the directory
98101
the command is called
99102
103+
--yes
104+
Bypasses the confirmation prompt
105+
100106
$ cargo php stubs --help
101-
cargo-php-stubs
107+
cargo-php-stubs
102108
103109
Generates stub PHP files for the extension.
104110
@@ -120,7 +126,7 @@ OPTIONS:
120126
--manifest <MANIFEST>
121127
Path to the Cargo manifest of the extension. Defaults to the manifest in the directory
122128
the command is called.
123-
129+
124130
This cannot be provided alongside the `ext` option, as that option provides a direct
125131
path to the extension shared library.
126132

guide/src/cargo-php.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ personally recommend for use in Visual Studio Code).
8484

8585
```text
8686
$ cargo php stubs --help
87-
cargo-php-stubs
87+
cargo-php-stubs
8888
8989
Generates stub PHP files for the extension.
9090
@@ -106,7 +106,7 @@ OPTIONS:
106106
--manifest <MANIFEST>
107107
Path to the Cargo manifest of the extension. Defaults to the manifest in the directory
108108
the command is called.
109-
109+
110110
This cannot be provided alongside the `ext` option, as that option provides a direct
111111
path to the extension shared library.
112112
@@ -130,7 +130,7 @@ so you are able to restore if you run into any issues.
130130

131131
```text
132132
$ cargo php install --help
133-
cargo-php-install
133+
cargo-php-install
134134
135135
Installs the extension in the current PHP installation.
136136
@@ -164,6 +164,9 @@ OPTIONS:
164164
165165
--release
166166
Whether to install the release version of the extension
167+
168+
--yes
169+
Bypasses the confirmation prompt
167170
```
168171

169172
## Extension Removal
@@ -175,7 +178,7 @@ from your `php.ini` if present.
175178

176179
```text
177180
$ cargo php remove --help
178-
cargo-php-remove
181+
cargo-php-remove
179182
180183
Removes the extension in the current PHP installation.
181184
@@ -203,6 +206,9 @@ OPTIONS:
203206
--manifest <MANIFEST>
204207
Path to the Cargo manifest of the extension. Defaults to the manifest in the directory
205208
the command is called
209+
210+
--yes
211+
Bypasses the confirmation prompt
206212
```
207213

208214
[`cargo-php`]: https://crates.io/crates/cargo-php

0 commit comments

Comments
 (0)