Repository navigation
Commit 81026a0
authored
[cli/package] Use --output=markdown in package-add docs hint (#23098)
The `--format` flag on `pulumi api` was renamed to `--output` in
#23072. The post-install docs hint
printed by `pulumi package add` and `pulumi package gen-sdk` was missed
in that rename, so it still emits `pulumi api --format=markdown`.
Against
the renamed command the hint fails with `unknown flag: --format`.
Update the format string in `printRegistryDocsHint` and the matching
expected output in `TestPrintRegistryDocsHint`.
## Test plan
- `cd pkg && go test -run TestPrintRegistryDocsHint
./cmd/pulumi/packagecmd/...`
passes; the `agent_on,_happy_path` subtest asserts the full expected
hint output.1 parent 69d216c commit 81026a0
3 files changed
Lines changed: 8 additions & 3 deletions
File tree
- changelog/pending
- pkg/cmd/pulumi/packagecmd
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
0 commit comments