@pnp/cli-microsoft365 11.1.0-beta.a3369ef → 11.1.0-beta.d3fc85d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import auth from '../../Auth.js';
|
|
2
|
-
import Command, { CommandError } from '../../Command.js';
|
|
2
|
+
import Command, { CommandError, globalOptionsZod } from '../../Command.js';
|
|
3
3
|
import commands from './commands.js';
|
|
4
|
+
const options = globalOptionsZod.strict();
|
|
4
5
|
class StatusCommand extends Command {
|
|
5
6
|
get name() {
|
|
6
7
|
return commands.STATUS;
|
|
@@ -8,6 +9,9 @@ class StatusCommand extends Command {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Shows Microsoft 365 login status';
|
|
10
11
|
}
|
|
12
|
+
get schema() {
|
|
13
|
+
return options;
|
|
14
|
+
}
|
|
11
15
|
async commandAction(logger) {
|
|
12
16
|
if (auth.connection.active) {
|
|
13
17
|
try {
|
package/package.json
CHANGED