Skip to content

Bug report: tenant serviceannouncements has wrong _global.md reference in docs #3425

@martinlingstuyl

Description

@martinlingstuyl

Description

tenant serviceannouncements has wrong _global.md reference in docs, breaking docs and cli help

Steps to reproduce

Look at the docs:
https://pnp.github.io/cli-microsoft365/cmd/tenant/serviceannouncement/serviceannouncement-health-get/#options

Expected results

The global references should be there

Actual results

it's missing the global options.

Also: it breaks the help function in bash. Try running: m365 tenant serviceannouncement health get

node:fs:585
handleErrorFromBinding(ctx);
^

Error: ENOENT: no such file or directory, open '/usr/lib/node_modules/@pnp/cli-microsoft365/docs/docs/cmd/_global.md'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at /usr/lib/node_modules/@pnp/cli-microsoft365/dist/utils/md.js:25:19
at String.replace ()
at includeContent (/usr/lib/node_modules/@pnp/cli-microsoft365/dist/utils/md.js:24:15)
at Object.md2plain (/usr/lib/node_modules/@pnp/cli-microsoft365/dist/utils/md.js:74:14)
at Cli.printCommandHelp (/usr/lib/node_modules/@pnp/cli-microsoft365/dist/cli/Cli.js:589:32)
at Cli.printHelp (/usr/lib/node_modules/@pnp/cli-microsoft365/dist/cli/Cli.js:551:18)
at Cli.closeWithError (/usr/lib/node_modules/@pnp/cli-microsoft365/dist/cli/Cli.js:695:18)
at Cli. (/usr/lib/node_modules/@pnp/cli-microsoft365/dist/cli/Cli.js:130:37) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/usr/lib/node_modules/@pnp/cli-microsoft365/docs/docs/cmd/\_global.md'

Diagnostics

No response

CLI for Microsoft 365 version

5.4.0 (next)

nodejs version

16.15.0

Operating system (environment)

Linux

Shell

bash

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions