@pnp/cli-microsoft365 7.3.0-beta.73848f3 → 7.3.0-beta.9479ed4
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.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +7 -5
- package/dist/Command.js +10 -13
- package/dist/api.js +2 -3
- package/dist/appInsights.js +2 -1
- package/dist/autocomplete.js +4 -6
- package/dist/chili/chili.js +1 -2
- package/dist/cli/cli.js +880 -0
- package/dist/index.js +2 -10
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-add.js +137 -0
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-get.js +112 -0
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-list.js +138 -0
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-remove.js +2 -2
- package/dist/m365/aad/commands/app/app-get.js +2 -2
- package/dist/m365/aad/commands/app/app-permission-add.js +237 -0
- package/dist/m365/aad/commands/app/app-remove.js +3 -3
- package/dist/m365/aad/commands/app/app-role-add.js +2 -2
- package/dist/m365/aad/commands/app/app-role-list.js +2 -2
- package/dist/m365/aad/commands/app/app-role-remove.js +4 -4
- package/dist/m365/aad/commands/app/app-set.js +2 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +2 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +2 -2
- package/dist/m365/aad/commands/group/group-list.js +71 -3
- package/dist/m365/aad/commands/group/group-remove.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +2 -2
- package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-clear.js +2 -2
- package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -3
- package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +2 -2
- package/dist/m365/aad/commands/m365group/m365group-remove.js +2 -2
- package/dist/m365/aad/commands/m365group/m365group-teamify.js +2 -2
- package/dist/m365/aad/commands/m365group/m365group-user-remove.js +2 -2
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -2
- package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +2 -2
- package/dist/m365/aad/commands/sp/sp-add.js +2 -2
- package/dist/m365/aad/commands/sp/sp-get.js +2 -2
- package/dist/m365/aad/commands/user/user-get.js +2 -2
- package/dist/m365/aad/commands/user/user-license-remove.js +2 -2
- package/dist/m365/aad/commands/user/user-recyclebinitem-clear.js +2 -2
- package/dist/m365/aad/commands/user/user-recyclebinitem-remove.js +2 -2
- package/dist/m365/aad/commands/user/user-remove.js +2 -2
- package/dist/m365/aad/commands.js +5 -1
- package/dist/m365/app/commands/app-get.js +2 -2
- package/dist/m365/app/commands/app-open.js +2 -2
- package/dist/m365/app/commands/permission/permission-list.js +2 -2
- package/dist/m365/base/AppCommand.js +2 -2
- package/dist/m365/base/PowerAutomateCommand.js +18 -0
- package/dist/m365/booking/commands/business/business-get.js +2 -2
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/cli/commands/cli-reconsent.js +2 -2
- package/dist/m365/cli/commands/config/config-get.js +2 -2
- package/dist/m365/cli/commands/config/config-list.js +2 -2
- package/dist/m365/cli/commands/config/config-reset.js +3 -3
- package/dist/m365/cli/commands/config/config-set.js +4 -4
- package/dist/m365/commands/docs.js +2 -2
- package/dist/m365/commands/login.js +4 -4
- package/dist/m365/commands/setup.js +8 -8
- package/dist/m365/context/commands/context-remove.js +2 -2
- package/dist/m365/context/commands/option/option-remove.js +2 -2
- package/dist/m365/external/commands/connection/connection-doctor.js +423 -0
- package/dist/m365/external/commands/connection/connection-remove.js +3 -3
- package/dist/m365/external/commands/connection/connection-schema-add.js +36 -3
- package/dist/m365/external/commands/item/item-add.js +144 -0
- package/dist/m365/external/commands.js +3 -1
- package/dist/m365/flow/commands/environment/environment-get.js +3 -3
- package/dist/m365/flow/commands/environment/environment-list.js +3 -3
- package/dist/m365/flow/commands/flow-disable.js +3 -3
- package/dist/m365/flow/commands/flow-enable.js +3 -3
- package/dist/m365/flow/commands/flow-get.js +3 -3
- package/dist/m365/flow/commands/flow-list.js +14 -12
- package/dist/m365/flow/commands/flow-remove.js +5 -5
- package/dist/m365/flow/commands/owner/owner-ensure.js +3 -3
- package/dist/m365/flow/commands/owner/owner-list.js +5 -5
- package/dist/m365/flow/commands/owner/owner-remove.js +5 -5
- package/dist/m365/flow/commands/run/run-cancel.js +5 -5
- package/dist/m365/flow/commands/run/run-get.js +3 -3
- package/dist/m365/flow/commands/run/run-list.js +8 -7
- package/dist/m365/flow/commands/run/run-resubmit.js +6 -6
- package/dist/m365/graph/commands/changelog/changelog-list.js +3 -3
- package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +2 -2
- package/dist/m365/outlook/commands/message/message-list.js +2 -2
- package/dist/m365/outlook/commands/message/message-move.js +2 -2
- package/dist/m365/pa/commands/app/app-consent-set.js +2 -2
- package/dist/m365/pa/commands/app/app-get.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-remove.js +2 -2
- package/dist/m365/pa/commands/app/app-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +3 -3
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-remove.js +3 -3
- package/dist/m365/planner/commands/roster/roster-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +2 -2
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -2
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-get.js +3 -3
- package/dist/m365/planner/commands/task/task-reference-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-remove.js +4 -4
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +2 -2
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +3 -3
- package/dist/m365/pp/commands/card/card-clone.js +2 -2
- package/dist/m365/pp/commands/card/card-get.js +2 -2
- package/dist/m365/pp/commands/card/card-remove.js +3 -3
- package/dist/m365/pp/commands/chatbot/chatbot-get.js +2 -2
- package/dist/m365/pp/commands/chatbot/chatbot-remove.js +3 -3
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +2 -2
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +2 -2
- package/dist/m365/pp/commands/solution/solution-get.js +2 -2
- package/dist/m365/pp/commands/solution/solution-list.js +2 -2
- package/dist/m365/pp/commands/solution/solution-publish.js +2 -2
- package/dist/m365/pp/commands/solution/solution-publisher-remove.js +3 -3
- package/dist/m365/pp/commands/solution/solution-remove.js +3 -3
- package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +2 -2
- package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +2 -2
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +2 -2
- package/dist/m365/spfx/commands/project/project-permissions-grant.js +2 -2
- package/dist/m365/spo/commands/app/app-add.js +2 -2
- package/dist/m365/spo/commands/app/app-remove.js +2 -2
- package/dist/m365/spo/commands/app/app-retract.js +2 -2
- package/dist/m365/spo/commands/app/app-uninstall.js +2 -2
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +2 -2
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +3 -3
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +2 -2
- package/dist/m365/spo/commands/commandset/commandset-get.js +2 -2
- package/dist/m365/spo/commands/commandset/commandset-remove.js +3 -3
- package/dist/m365/spo/commands/commandset/commandset-set.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +2 -2
- package/dist/m365/spo/commands/customaction/customaction-add.js +1 -1
- package/dist/m365/spo/commands/customaction/customaction-clear.js +2 -2
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -3
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +2 -2
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +3 -3
- package/dist/m365/spo/commands/field/field-remove.js +2 -2
- package/dist/m365/spo/commands/file/file-add.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout-undo.js +2 -2
- package/dist/m365/spo/commands/file/file-remove.js +2 -2
- package/dist/m365/spo/commands/file/file-rename.js +2 -2
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +2 -2
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +5 -5
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -3
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -3
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +2 -2
- package/dist/m365/spo/commands/file/file-sharinglink-clear.js +3 -3
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +2 -2
- package/dist/m365/spo/commands/file/file-sharinglink-remove.js +2 -2
- package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
- package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
- package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +2 -2
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +2 -2
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -4
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +4 -4
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/group/group-list.js +2 -2
- package/dist/m365/spo/commands/group/group-member-remove.js +9 -9
- package/dist/m365/spo/commands/group/group-remove.js +2 -2
- package/dist/m365/spo/commands/group/group-set.js +2 -2
- package/dist/m365/spo/commands/homesite/homesite-remove.js +2 -2
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +2 -2
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +3 -3
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +2 -2
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +2 -2
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +4 -4
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-view-remove.js +2 -2
- package/dist/m365/spo/commands/list/list-webhook-remove.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-batch-add.js +18 -7
- package/dist/m365/spo/commands/listitem/listitem-list.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +2 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +2 -2
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +2 -2
- package/dist/m365/spo/commands/page/page-add.js +10 -31
- package/dist/m365/spo/commands/page/page-column-get.js +2 -2
- package/dist/m365/spo/commands/page/page-column-list.js +2 -2
- package/dist/m365/spo/commands/page/page-remove.js +2 -2
- package/dist/m365/spo/commands/page/page-section-get.js +2 -2
- package/dist/m365/spo/commands/page/page-section-list.js +2 -2
- package/dist/m365/spo/commands/page/page-set.js +5 -5
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +2 -2
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +2 -2
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +2 -2
- package/dist/m365/spo/commands/site/site-recyclebinitem-clear.js +2 -2
- package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +2 -2
- package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +2 -2
- package/dist/m365/spo/commands/site/site-remove.js +2 -2
- package/dist/m365/spo/commands/site/site-set.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +2 -2
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +2 -2
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +2 -2
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +2 -2
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +2 -2
- package/dist/m365/spo/commands/spo-search.js +2 -2
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +2 -2
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +2 -2
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +3 -3
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +4 -4
- package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +2 -2
- package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -3
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +2 -2
- package/dist/m365/spo/commands/term/term-get.js +2 -2
- package/dist/m365/spo/commands/term/term-list.js +2 -2
- package/dist/m365/spo/commands/theme/theme-remove.js +2 -2
- package/dist/m365/spo/commands/user/user-remove.js +2 -2
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -2
- package/dist/m365/spo/commands/web/web-remove.js +2 -2
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +4 -4
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +4 -4
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +2 -2
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +2 -2
- package/dist/m365/teams/commands/app/app-install.js +32 -5
- package/dist/m365/teams/commands/app/app-remove.js +3 -3
- package/dist/m365/teams/commands/app/app-uninstall.js +2 -2
- package/dist/m365/teams/commands/app/app-update.js +2 -2
- package/dist/m365/teams/commands/cache/cache-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -3
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
- package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
- package/dist/m365/teams/commands/chat/chat-get.js +3 -3
- package/dist/m365/teams/commands/chat/chat-member-remove.js +2 -2
- package/dist/m365/teams/commands/chat/chat-message-send.js +3 -3
- package/dist/m365/teams/commands/meeting/meeting-add.js +151 -0
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
- package/dist/m365/teams/commands/tab/tab-remove.js +2 -2
- package/dist/m365/teams/commands/team/team-app-list.js +3 -3
- package/dist/m365/teams/commands/team/team-remove.js +2 -2
- package/dist/m365/teams/commands/user/user-app-add.js +23 -5
- package/dist/m365/teams/commands/user/user-app-list.js +2 -2
- package/dist/m365/teams/commands/user/user-app-remove.js +35 -4
- package/dist/m365/teams/commands.js +2 -1
- package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +2 -2
- package/dist/m365/todo/commands/list/list-remove.js +2 -2
- package/dist/m365/todo/commands/task/task-get.js +2 -2
- package/dist/m365/todo/commands/task/task-list.js +2 -2
- package/dist/m365/todo/commands/task/task-remove.js +2 -2
- package/dist/m365/viva/commands/connections/connections-app-create.js +2 -2
- package/dist/m365/yammer/commands/group/group-user-remove.js +2 -2
- package/dist/m365/yammer/commands/message/message-like-set.js +2 -2
- package/dist/m365/yammer/commands/message/message-remove.js +2 -2
- package/dist/m365/yammer/commands/yammer-search.js +2 -2
- package/dist/telemetry.js +2 -10
- package/dist/utils/aadAdministrativeUnit.js +5 -5
- package/dist/utils/aadDevice.js +25 -0
- package/dist/utils/aadGroup.js +3 -3
- package/dist/utils/prompt.js +4 -7
- package/dist/utils/validation.js +5 -2
- package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-add.mdx +93 -0
- package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-get.mdx +130 -0
- package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-list.mdx +312 -0
- package/docs/docs/cmd/aad/app/app-permission-add.mdx +62 -0
- package/docs/docs/cmd/aad/group/group-list.mdx +11 -0
- package/docs/docs/cmd/aad/user/user-password-validate.mdx +2 -2
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-doctor.mdx +182 -0
- package/docs/docs/cmd/external/connection/connection-schema-add.mdx +14 -1
- package/docs/docs/cmd/external/item/item-add.mdx +145 -0
- package/docs/docs/cmd/flow/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/flow/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/flow/flow-disable.mdx +1 -1
- package/docs/docs/cmd/flow/flow-enable.mdx +1 -1
- package/docs/docs/cmd/flow/flow-export.mdx +1 -1
- package/docs/docs/cmd/flow/flow-get.mdx +1 -1
- package/docs/docs/cmd/flow/flow-list.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-resubmit.mdx +1 -1
- package/docs/docs/cmd/graph/changelog/changelog-list.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +0 -3
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +0 -3
- package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +0 -3
- package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +0 -3
- package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +0 -3
- package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +0 -3
- package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +0 -3
- package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +0 -3
- package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
- package/docs/docs/cmd/pa/connector/connector-export.mdx +1 -1
- package/docs/docs/cmd/pa/connector/connector-list.mdx +1 -1
- package/docs/docs/cmd/pa/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-get.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-list.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-get.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-list.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-set.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-add.mdx +2 -2
- package/docs/docs/cmd/planner/roster/roster-get.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +2 -2
- package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
- package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-list.mdx +2 -2
- package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +1 -1
- package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +2 -2
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +2 -2
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +2 -2
- package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -2
- package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -3
- package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -3
- package/docs/docs/cmd/spfx/project/project-externalize.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +26 -4
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-activitypages.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +0 -3
- package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +0 -3
- package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
- package/docs/docs/cmd/teams/app/app-install.mdx +11 -2
- package/docs/docs/cmd/teams/meeting/meeting-add.mdx +283 -0
- package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +2 -2
- package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +0 -3
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +0 -3
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +0 -3
- package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +0 -3
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +0 -3
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +0 -3
- package/docs/docs/cmd/teams/user/user-app-add.mdx +12 -3
- package/docs/docs/cmd/teams/user/user-app-remove.mdx +15 -6
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +0 -3
- package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +0 -3
- package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +0 -3
- package/docs/docs/cmd/yammer/group/group-list.mdx +1 -1
- package/docs/docs/cmd/yammer/group/group-user-add.mdx +1 -1
- package/docs/docs/cmd/yammer/group/group-user-remove.mdx +1 -1
- package/docs/docs/cmd/yammer/message/message-add.mdx +1 -1
- package/docs/docs/cmd/yammer/message/message-get.mdx +1 -1
- package/docs/docs/cmd/yammer/message/message-like-set.mdx +1 -1
- package/docs/docs/cmd/yammer/message/message-list.mdx +1 -1
- package/docs/docs/cmd/yammer/message/message-remove.mdx +1 -1
- package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
- package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +0 -3
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +0 -3
- package/docs/docs/cmd/yammer/user/user-get.mdx +1 -1
- package/docs/docs/cmd/yammer/user/user-list.mdx +1 -1
- package/docs/docs/cmd/yammer/yammer-search.mdx +1 -1
- package/npm-shrinkwrap.json +1012 -410
- package/package.json +26 -25
- package/dist/cli/Cli.js +0 -857
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AadM365GroupUserRemoveCommand_instances, _AadM365GroupUserRemoveCommand_initTelemetry, _AadM365GroupUserRemoveCommand_initOptions, _AadM365GroupUserRemoveCommand_initValidators, _AadM365GroupUserRemoveCommand_initOptionSets;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
10
10
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -92,7 +92,7 @@ class AadM365GroupUserRemoveCommand extends GraphCommand {
|
|
|
92
92
|
await removeUser();
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
|
-
const result = await
|
|
95
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove ${args.options.userName} from the ${(typeof args.options.groupId !== 'undefined' ? 'group' : 'team')} ${groupId}?` });
|
|
96
96
|
if (result) {
|
|
97
97
|
await removeUser();
|
|
98
98
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AadOAuth2GrantRemoveCommand_instances, _AadOAuth2GrantRemoveCommand_initOptions;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -44,7 +44,7 @@ class AadOAuth2GrantRemoveCommand extends GraphCommand {
|
|
|
44
44
|
await removeOauth2Grant();
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
-
const result = await
|
|
47
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the OAuth2 permissions for ${args.options.grantId}?` });
|
|
48
48
|
if (result) {
|
|
49
49
|
await removeOauth2Grant();
|
|
50
50
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AadSiteClassificationDisableCommand_instances, _AadSiteClassificationDisableCommand_initTelemetry, _AadSiteClassificationDisableCommand_initOptions;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
@@ -63,7 +63,7 @@ class AadSiteClassificationDisableCommand extends GraphCommand {
|
|
|
63
63
|
await disableSiteClassification();
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
const result = await
|
|
66
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to disable site classification?` });
|
|
67
67
|
if (result) {
|
|
68
68
|
await disableSiteClassification();
|
|
69
69
|
}
|
|
@@ -9,7 +9,7 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
import {
|
|
12
|
+
import { cli } from '../../../../cli/cli.js';
|
|
13
13
|
class AadSpAddCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
15
|
return commands.SP_ADD;
|
|
@@ -50,7 +50,7 @@ class AadSpAddCommand extends GraphCommand {
|
|
|
50
50
|
}
|
|
51
51
|
if (response.value.length > 1) {
|
|
52
52
|
const resultAsKeyValuePair = formatting.convertArrayToHashTable('appId', response.value);
|
|
53
|
-
const result = await
|
|
53
|
+
const result = await cli.handleMultipleResultsFound(`Multiple Azure AD apps with name '${args.options.appName}' found.`, resultAsKeyValuePair);
|
|
54
54
|
return result.appId;
|
|
55
55
|
}
|
|
56
56
|
return spItem.appId;
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AadSpGetCommand_instances, _AadSpGetCommand_initTelemetry, _AadSpGetCommand_initOptions, _AadSpGetCommand_initValidators, _AadSpGetCommand_initOptionSets;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -50,7 +50,7 @@ class AadSpGetCommand extends GraphCommand {
|
|
|
50
50
|
}
|
|
51
51
|
if (response.value.length > 1) {
|
|
52
52
|
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', response.value);
|
|
53
|
-
const result = await
|
|
53
|
+
const result = await cli.handleMultipleResultsFound(`Multiple Azure AD apps with name '${args.options.appDisplayName}' found.`, resultAsKeyValuePair);
|
|
54
54
|
return result.id;
|
|
55
55
|
}
|
|
56
56
|
return spItem.id;
|
|
@@ -9,7 +9,7 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
import {
|
|
12
|
+
import { cli } from '../../../../cli/cli.js';
|
|
13
13
|
class AadUserGetCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
15
|
return commands.USER_GET;
|
|
@@ -59,7 +59,7 @@ class AadUserGetCommand extends GraphCommand {
|
|
|
59
59
|
}
|
|
60
60
|
if (res.value.length > 1) {
|
|
61
61
|
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', res.value);
|
|
62
|
-
const result = await
|
|
62
|
+
const result = await cli.handleMultipleResultsFound(`Multiple users with ${identifier} found.`, resultAsKeyValuePair);
|
|
63
63
|
await logger.log(result);
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
@@ -7,7 +7,7 @@ var _AadUserLicenseRemoveCommand_instances, _AadUserLicenseRemoveCommand_initTel
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
|
-
import {
|
|
10
|
+
import { cli } from '../../../../cli/cli.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
class AadUserLicenseRemoveCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
@@ -32,7 +32,7 @@ class AadUserLicenseRemoveCommand extends GraphCommand {
|
|
|
32
32
|
await this.deleteUserLicenses(args);
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
const result = await
|
|
35
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the licenses for the user '${args.options.userId || args.options.userName}'?` });
|
|
36
36
|
if (result) {
|
|
37
37
|
await this.deleteUserLicenses(args);
|
|
38
38
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AadUserRecycleBinItemClearCommand_instances, _AadUserRecycleBinItemClearCommand_initTelemetry, _AadUserRecycleBinItemClearCommand_initOptions;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { odata } from '../../../../utils/odata.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -63,7 +63,7 @@ class AadUserRecycleBinItemClearCommand extends GraphCommand {
|
|
|
63
63
|
await clearRecycleBinUsers();
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
const result = await
|
|
66
|
+
const result = await cli.promptForConfirmation({ message: 'Are you sure you want to permanently delete all deleted users?' });
|
|
67
67
|
if (result) {
|
|
68
68
|
await clearRecycleBinUsers();
|
|
69
69
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AadUserRecycleBinItemRemoveCommand_instances, _AadUserRecycleBinItemRemoveCommand_initTelemetry, _AadUserRecycleBinItemRemoveCommand_initOptions, _AadUserRecycleBinItemRemoveCommand_initValidators;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -43,7 +43,7 @@ class AadUserRecycleBinItemRemoveCommand extends GraphCommand {
|
|
|
43
43
|
await clearRecycleBinItem();
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
|
-
const result = await
|
|
46
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to permanently delete the user with id ${args.options.id}?` });
|
|
47
47
|
if (result) {
|
|
48
48
|
await clearRecycleBinItem();
|
|
49
49
|
}
|
|
@@ -7,7 +7,7 @@ var _AadUserRemoveCommand_instances, _AadUserRemoveCommand_initTelemetry, _AadUs
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
|
-
import {
|
|
10
|
+
import { cli } from '../../../../cli/cli.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
class AadUserRemoveCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
@@ -32,7 +32,7 @@ class AadUserRemoveCommand extends GraphCommand {
|
|
|
32
32
|
await this.deleteUser(args);
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
const result = await
|
|
35
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove user '${args.options.id || args.options.userName}'?` });
|
|
36
36
|
if (result) {
|
|
37
37
|
await this.deleteUser(args);
|
|
38
38
|
}
|
|
@@ -4,14 +4,18 @@ export default {
|
|
|
4
4
|
ADMINISTRATIVEUNIT_GET: `${prefix} administrativeunit get`,
|
|
5
5
|
ADMINISTRATIVEUNIT_LIST: `${prefix} administrativeunit list`,
|
|
6
6
|
ADMINISTRATIVEUNIT_REMOVE: `${prefix} administrativeunit remove`,
|
|
7
|
+
ADMINISTRATIVEUNIT_MEMBER_ADD: `${prefix} administrativeunit member add`,
|
|
8
|
+
ADMINISTRATIVEUNIT_MEMBER_GET: `${prefix} administrativeunit member get`,
|
|
9
|
+
ADMINISTRATIVEUNIT_MEMBER_LIST: `${prefix} administrativeunit member list`,
|
|
7
10
|
APP_ADD: `${prefix} app add`,
|
|
8
11
|
APP_GET: `${prefix} app get`,
|
|
9
12
|
APP_LIST: `${prefix} app list`,
|
|
10
13
|
APP_REMOVE: `${prefix} app remove`,
|
|
14
|
+
APP_SET: `${prefix} app set`,
|
|
15
|
+
APP_PERMISSION_ADD: `${prefix} app permission add`,
|
|
11
16
|
APP_ROLE_ADD: `${prefix} app role add`,
|
|
12
17
|
APP_ROLE_LIST: `${prefix} app role list`,
|
|
13
18
|
APP_ROLE_REMOVE: `${prefix} app role remove`,
|
|
14
|
-
APP_SET: `${prefix} app set`,
|
|
15
19
|
APPROLEASSIGNMENT_ADD: `${prefix} approleassignment add`,
|
|
16
20
|
APPROLEASSIGNMENT_LIST: `${prefix} approleassignment list`,
|
|
17
21
|
APPROLEASSIGNMENT_REMOVE: `${prefix} approleassignment remove`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cli } from '../../../cli/cli.js';
|
|
2
2
|
import aadAppGetCommand from '../../aad/commands/app/app-get.js';
|
|
3
3
|
import AppCommand from '../../base/AppCommand.js';
|
|
4
4
|
import commands from '../commands.js';
|
|
@@ -17,7 +17,7 @@ class AppGetCommand extends AppCommand {
|
|
|
17
17
|
verbose: args.options.verbose
|
|
18
18
|
};
|
|
19
19
|
try {
|
|
20
|
-
const appGetOutput = await
|
|
20
|
+
const appGetOutput = await cli.executeCommandWithOutput(aadAppGetCommand, { options: { ...options, _: [] } });
|
|
21
21
|
if (this.verbose) {
|
|
22
22
|
await logger.logToStderr(appGetOutput.stderr);
|
|
23
23
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AppOpenCommand_instances, _AppOpenCommand_initTelemetry, _AppOpenCommand_initOptions;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from '../../../cli/cli.js';
|
|
8
8
|
import { settingsNames } from '../../../settingsNames.js';
|
|
9
9
|
import { browserUtil } from '../../../utils/browserUtil.js';
|
|
10
10
|
import AppCommand from '../../base/AppCommand.js';
|
|
@@ -33,7 +33,7 @@ class AppOpenCommand extends AppCommand {
|
|
|
33
33
|
async logOrOpenUrl(args, logger) {
|
|
34
34
|
const previewPrefix = args.options.preview === true ? "preview." : "";
|
|
35
35
|
const url = `https://${previewPrefix}portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Overview/appId/${this.appId}/isMSAApp/`;
|
|
36
|
-
if (
|
|
36
|
+
if (cli.getSettingWithDefaultValue(settingsNames.autoOpenLinksInBrowser, false) === false) {
|
|
37
37
|
await logger.log(`Use a web browser to open the page ${url}`);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cli } from '../../../../cli/cli.js';
|
|
2
2
|
import request from '../../../../request.js';
|
|
3
3
|
import appGetCommand from '../../../aad/commands/app/app-get.js';
|
|
4
4
|
import AppCommand from '../../../base/AppCommand.js';
|
|
@@ -186,7 +186,7 @@ class AppPermissionListCommand extends AppCommand {
|
|
|
186
186
|
debug: this.debug,
|
|
187
187
|
verbose: this.verbose
|
|
188
188
|
};
|
|
189
|
-
const output = await
|
|
189
|
+
const output = await cli.executeCommandWithOutput(appGetCommand, { options: { ...options, _: [] } });
|
|
190
190
|
if (this.debug) {
|
|
191
191
|
await logger.logToStderr(output.stderr);
|
|
192
192
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _AppCommand_instances, _AppCommand_initOptions, _AppCommand_initValidators;
|
|
7
7
|
import fs from 'fs';
|
|
8
|
-
import {
|
|
8
|
+
import { cli } from '../../cli/cli.js';
|
|
9
9
|
import Command, { CommandError } from '../../Command.js';
|
|
10
10
|
import { validation } from '../../utils/validation.js';
|
|
11
11
|
import { formatting } from '../../utils/formatting.js';
|
|
@@ -54,7 +54,7 @@ class AppCommand extends Command {
|
|
|
54
54
|
}
|
|
55
55
|
if (this.m365rcJson.apps.length > 1) {
|
|
56
56
|
const resultAsKeyValuePair = formatting.convertArrayToHashTable('appIdIndex', this.m365rcJson.apps);
|
|
57
|
-
const result = await
|
|
57
|
+
const result = await cli.handleMultipleResultsFound(`Multiple Azure AD apps found in ${m365rcJsonPath}.`, resultAsKeyValuePair);
|
|
58
58
|
this.appId = this.m365rcJson.apps[result.appIdIndex].appId;
|
|
59
59
|
await super.action(logger, args);
|
|
60
60
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import auth, { CloudType } from '../../Auth.js';
|
|
2
|
+
import Command, { CommandError } from '../../Command.js';
|
|
3
|
+
export default class PowerAutomateCommand extends Command {
|
|
4
|
+
get resource() {
|
|
5
|
+
return 'https://api.flow.microsoft.com';
|
|
6
|
+
}
|
|
7
|
+
initAction(args, logger) {
|
|
8
|
+
super.initAction(args, logger);
|
|
9
|
+
if (!auth.service.connected) {
|
|
10
|
+
// we fail no login in the base command command class
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (auth.service.cloudType !== CloudType.Public) {
|
|
14
|
+
throw new CommandError(`Power Automate commands only support the public cloud at the moment. We'll add support for other clouds in the future. Sorry for the inconvenience.`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=PowerAutomateCommand.js.map
|
|
@@ -8,7 +8,7 @@ import request from '../../../../request.js';
|
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
import {
|
|
11
|
+
import { cli } from '../../../../cli/cli.js';
|
|
12
12
|
class BookingBusinessGetCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
14
|
return commands.BUSINESS_GET;
|
|
@@ -62,7 +62,7 @@ class BookingBusinessGetCommand extends GraphCommand {
|
|
|
62
62
|
}
|
|
63
63
|
if (bookingBusinesses.length > 1) {
|
|
64
64
|
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', bookingBusinesses);
|
|
65
|
-
const result = await
|
|
65
|
+
const result = await cli.handleMultipleResultsFound(`Multiple businesses with name '${options.name}' found.`, resultAsKeyValuePair);
|
|
66
66
|
return result.id;
|
|
67
67
|
}
|
|
68
68
|
return bookingBusinesses[0].id;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import os from 'os';
|
|
2
2
|
import auth, { AuthType } from '../../../Auth.js';
|
|
3
|
-
import {
|
|
3
|
+
import { cli } from '../../../cli/cli.js';
|
|
4
4
|
import Command from '../../../Command.js';
|
|
5
5
|
import { app } from '../../../utils/app.js';
|
|
6
6
|
import { validation } from '../../../utils/validation.js';
|
|
@@ -35,7 +35,7 @@ class CliDoctorCommand extends Command {
|
|
|
35
35
|
cliAadAppTenant: validation.isValidGuid(auth.service.tenant) ? 'single' : auth.service.tenant,
|
|
36
36
|
authMode: AuthType[auth.service.authType],
|
|
37
37
|
cliEnvironment: process.env.CLIMICROSOFT365_ENV ? process.env.CLIMICROSOFT365_ENV : '',
|
|
38
|
-
cliConfig:
|
|
38
|
+
cliConfig: cli.getConfig().all,
|
|
39
39
|
roles: roles,
|
|
40
40
|
scopes: Object.fromEntries(scopes)
|
|
41
41
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cli } from '../../../cli/cli.js';
|
|
2
2
|
import config from '../../../config.js';
|
|
3
3
|
import { settingsNames } from '../../../settingsNames.js';
|
|
4
4
|
import { browserUtil } from '../../../utils/browserUtil.js';
|
|
@@ -13,7 +13,7 @@ class CliReconsentCommand extends AnonymousCommand {
|
|
|
13
13
|
}
|
|
14
14
|
async commandAction(logger) {
|
|
15
15
|
const url = `https://login.microsoftonline.com/${config.tenant}/oauth2/authorize?client_id=${config.cliAadAppId}&response_type=code&prompt=admin_consent`;
|
|
16
|
-
if (
|
|
16
|
+
if (cli.getSettingWithDefaultValue(settingsNames.autoOpenLinksInBrowser, false) === false) {
|
|
17
17
|
await logger.log(`To re-consent the PnP Microsoft 365 Management Shell Azure AD application navigate in your web browser to ${url}`);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _CliConfigGetCommand_instances, _a, _CliConfigGetCommand_initTelemetry, _CliConfigGetCommand_initOptions, _CliConfigGetCommand_initValidators;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from "../../../../cli/cli.js";
|
|
8
8
|
import { settingsNames } from "../../../../settingsNames.js";
|
|
9
9
|
import AnonymousCommand from "../../../base/AnonymousCommand.js";
|
|
10
10
|
import commands from "../../commands.js";
|
|
@@ -23,7 +23,7 @@ class CliConfigGetCommand extends AnonymousCommand {
|
|
|
23
23
|
__classPrivateFieldGet(this, _CliConfigGetCommand_instances, "m", _CliConfigGetCommand_initValidators).call(this);
|
|
24
24
|
}
|
|
25
25
|
async commandAction(logger, args) {
|
|
26
|
-
await logger.log(
|
|
26
|
+
await logger.log(cli.getConfig().get(args.options.key));
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
_a = CliConfigGetCommand, _CliConfigGetCommand_instances = new WeakSet(), _CliConfigGetCommand_initTelemetry = function _CliConfigGetCommand_initTelemetry() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cli } from "../../../../cli/cli.js";
|
|
2
2
|
import AnonymousCommand from "../../../base/AnonymousCommand.js";
|
|
3
3
|
import commands from "../../commands.js";
|
|
4
4
|
class CliConfigListCommand extends AnonymousCommand {
|
|
@@ -9,7 +9,7 @@ class CliConfigListCommand extends AnonymousCommand {
|
|
|
9
9
|
return 'List all self set CLI for Microsoft 365 configurations';
|
|
10
10
|
}
|
|
11
11
|
async commandAction(logger) {
|
|
12
|
-
await logger.log(
|
|
12
|
+
await logger.log(cli.getConfig().all);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
export default new CliConfigListCommand();
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _CliConfigResetCommand_instances, _a, _CliConfigResetCommand_initTelemetry, _CliConfigResetCommand_initOptions, _CliConfigResetCommand_initValidators;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from "../../../../cli/cli.js";
|
|
8
8
|
import { settingsNames } from "../../../../settingsNames.js";
|
|
9
9
|
import AnonymousCommand from "../../../base/AnonymousCommand.js";
|
|
10
10
|
import commands from "../../commands.js";
|
|
@@ -24,10 +24,10 @@ class CliConfigResetCommand extends AnonymousCommand {
|
|
|
24
24
|
}
|
|
25
25
|
async commandAction(logger, args) {
|
|
26
26
|
if (args.options.key) {
|
|
27
|
-
|
|
27
|
+
cli.getConfig().delete(args.options.key);
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
|
-
|
|
30
|
+
cli.getConfig().clear();
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _CliConfigSetCommand_instances, _a, _CliConfigSetCommand_initTelemetry, _CliConfigSetCommand_initOptions, _CliConfigSetCommand_initValidators;
|
|
7
|
-
import {
|
|
7
|
+
import { cli } from "../../../../cli/cli.js";
|
|
8
8
|
import { settingsNames } from "../../../../settingsNames.js";
|
|
9
9
|
import AnonymousCommand from "../../../base/AnonymousCommand.js";
|
|
10
10
|
import commands from "../../commands.js";
|
|
@@ -41,7 +41,7 @@ class CliConfigSetCommand extends AnonymousCommand {
|
|
|
41
41
|
value = args.options.value;
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
cli.getConfig().set(args.options.key, value);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
_a = CliConfigSetCommand, _CliConfigSetCommand_instances = new WeakSet(), _CliConfigSetCommand_initTelemetry = function _CliConfigSetCommand_initTelemetry() {
|
|
@@ -79,8 +79,8 @@ _a = CliConfigSetCommand, _CliConfigSetCommand_instances = new WeakSet(), _CliCo
|
|
|
79
79
|
return `${args.options.value} is not a valid value for the option ${args.options.key}. The number has to be higher than 0.`;
|
|
80
80
|
}
|
|
81
81
|
if (args.options.key === settingsNames.helpMode &&
|
|
82
|
-
|
|
83
|
-
return `${args.options.value} is not a valid value for the option ${args.options.key}. Allowed values: ${
|
|
82
|
+
cli.helpModes.indexOf(args.options.value) === -1) {
|
|
83
|
+
return `${args.options.value} is not a valid value for the option ${args.options.key}. Allowed values: ${cli.helpModes.join(', ')}`;
|
|
84
84
|
}
|
|
85
85
|
const allowedAuthTypes = ['certificate', 'deviceCode', 'password', 'identity', 'browser', 'secret'];
|
|
86
86
|
if (args.options.key === settingsNames.authType &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cli } from '../../cli/cli.js';
|
|
2
2
|
import { settingsNames } from '../../settingsNames.js';
|
|
3
3
|
import { app } from '../../utils/app.js';
|
|
4
4
|
import { browserUtil } from '../../utils/browserUtil.js';
|
|
@@ -13,7 +13,7 @@ class DocsCommand extends AnonymousCommand {
|
|
|
13
13
|
}
|
|
14
14
|
async commandAction(logger) {
|
|
15
15
|
await logger.log(app.packageJson().homepage);
|
|
16
|
-
if (
|
|
16
|
+
if (cli.getSettingWithDefaultValue(settingsNames.autoOpenLinksInBrowser, false) === false) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
await browserUtil.open(app.packageJson().homepage);
|
|
@@ -12,7 +12,7 @@ import { accessToken } from '../../utils/accessToken.js';
|
|
|
12
12
|
import { misc } from '../../utils/misc.js';
|
|
13
13
|
import commands from './commands.js';
|
|
14
14
|
import { settingsNames } from '../../settingsNames.js';
|
|
15
|
-
import {
|
|
15
|
+
import { cli } from '../../cli/cli.js';
|
|
16
16
|
class LoginCommand extends Command {
|
|
17
17
|
get name() {
|
|
18
18
|
return commands.LOGIN;
|
|
@@ -37,7 +37,7 @@ class LoginCommand extends Command {
|
|
|
37
37
|
if (this.verbose) {
|
|
38
38
|
await logger.logToStderr(`Signing in to Microsoft 365...`);
|
|
39
39
|
}
|
|
40
|
-
const authType = args.options.authType ||
|
|
40
|
+
const authType = args.options.authType || cli.getSettingWithDefaultValue(settingsNames.authType, 'deviceCode');
|
|
41
41
|
auth.service.appId = args.options.appId || config.cliAadAppId;
|
|
42
42
|
auth.service.tenant = args.options.tenant || config.tenant;
|
|
43
43
|
switch (authType) {
|
|
@@ -129,7 +129,7 @@ class LoginCommand extends Command {
|
|
|
129
129
|
_a = LoginCommand, _LoginCommand_instances = new WeakSet(), _LoginCommand_initTelemetry = function _LoginCommand_initTelemetry() {
|
|
130
130
|
this.telemetry.push((args) => {
|
|
131
131
|
Object.assign(this.telemetryProperties, {
|
|
132
|
-
authType: args.options.authType ||
|
|
132
|
+
authType: args.options.authType || cli.getSettingWithDefaultValue(settingsNames.authType, 'deviceCode'),
|
|
133
133
|
cloud: args.options.cloud ?? CloudType.Public
|
|
134
134
|
});
|
|
135
135
|
});
|
|
@@ -159,7 +159,7 @@ _a = LoginCommand, _LoginCommand_instances = new WeakSet(), _LoginCommand_initTe
|
|
|
159
159
|
});
|
|
160
160
|
}, _LoginCommand_initValidators = function _LoginCommand_initValidators() {
|
|
161
161
|
this.validators.push(async (args) => {
|
|
162
|
-
const authType = args.options.authType ||
|
|
162
|
+
const authType = args.options.authType || cli.getSettingWithDefaultValue(settingsNames.authType, 'deviceCode');
|
|
163
163
|
if (authType === 'password') {
|
|
164
164
|
if (!args.options.userName) {
|
|
165
165
|
return 'Required option userName missing';
|
|
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _SetupCommand_instances, _SetupCommand_initTelemetry, _SetupCommand_initOptions, _SetupCommand_initValidators;
|
|
7
7
|
import chalk from 'chalk';
|
|
8
8
|
import os from 'os';
|
|
9
|
-
import {
|
|
9
|
+
import { cli } from '../../cli/cli.js';
|
|
10
10
|
import { CheckStatus, formatting } from '../../utils/formatting.js';
|
|
11
11
|
import { pid } from '../../utils/pid.js';
|
|
12
12
|
import AnonymousCommand from '../base/AnonymousCommand.js';
|
|
@@ -43,7 +43,7 @@ class SetupCommand extends AnonymousCommand {
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
// stop the spinner. Fixes #5598
|
|
46
|
-
|
|
46
|
+
cli.spinner.stop();
|
|
47
47
|
await logger.logToStderr(`Welcome to the CLI for Microsoft 365 setup!`);
|
|
48
48
|
await logger.logToStderr(`This command will guide you through the process of configuring the CLI for your needs.`);
|
|
49
49
|
await logger.logToStderr(`Please, answer the following questions and we'll define a set of settings to best match how you intend to use the CLI.`);
|
|
@@ -56,13 +56,13 @@ class SetupCommand extends AnonymousCommand {
|
|
|
56
56
|
{ name: 'Scripting', value: 'Scripting' }
|
|
57
57
|
]
|
|
58
58
|
};
|
|
59
|
-
preferences.usageMode = await
|
|
59
|
+
preferences.usageMode = await cli.promptForSelection(usageModeConfig);
|
|
60
60
|
if (preferences.usageMode === 'Scripting') {
|
|
61
61
|
const usedInPowerShellConfig = {
|
|
62
62
|
message: 'Are you going to use the CLI in PowerShell?',
|
|
63
63
|
default: pid.isPowerShell()
|
|
64
64
|
};
|
|
65
|
-
preferences.usedInPowerShell = await
|
|
65
|
+
preferences.usedInPowerShell = await cli.promptForConfirmation(usedInPowerShellConfig);
|
|
66
66
|
}
|
|
67
67
|
const experienceConfig = {
|
|
68
68
|
message: 'How experienced are you in using the CLI?',
|
|
@@ -71,7 +71,7 @@ class SetupCommand extends AnonymousCommand {
|
|
|
71
71
|
{ name: 'Proficient', value: 'Proficient' }
|
|
72
72
|
]
|
|
73
73
|
};
|
|
74
|
-
preferences.experience = await
|
|
74
|
+
preferences.experience = await cli.promptForSelection(experienceConfig);
|
|
75
75
|
const summaryConfig = {
|
|
76
76
|
// invoked by inquirer
|
|
77
77
|
/* c8 ignore next 6 */
|
|
@@ -81,7 +81,7 @@ class SetupCommand extends AnonymousCommand {
|
|
|
81
81
|
return this.getSummaryMessage(settings);
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
preferences.summary = await
|
|
84
|
+
preferences.summary = await cli.promptForConfirmation(summaryConfig);
|
|
85
85
|
if (preferences.summary) {
|
|
86
86
|
// used only for testing. Normally, we'd get the settings from the answers
|
|
87
87
|
/* c8 ignore next 3 */
|
|
@@ -92,7 +92,7 @@ class SetupCommand extends AnonymousCommand {
|
|
|
92
92
|
await logger.logToStderr('Configuring settings...');
|
|
93
93
|
await logger.logToStderr('');
|
|
94
94
|
// start the spinner. Fixes #5598
|
|
95
|
-
|
|
95
|
+
cli.spinner.start();
|
|
96
96
|
await this.configureSettings(settings, false, logger);
|
|
97
97
|
if (!this.verbose) {
|
|
98
98
|
await logger.logToStderr('');
|
|
@@ -137,7 +137,7 @@ class SetupCommand extends AnonymousCommand {
|
|
|
137
137
|
await logger.logToStderr(JSON.stringify(settings, null, 2));
|
|
138
138
|
}
|
|
139
139
|
for (const [key, value] of Object.entries(settings)) {
|
|
140
|
-
|
|
140
|
+
cli.getConfig().set(key, value);
|
|
141
141
|
if (!silent) {
|
|
142
142
|
await logger.logToStderr(formatting.getStatus(CheckStatus.Success, `${key}: ${value}`));
|
|
143
143
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _ContextRemoveCommand_instances, _ContextRemoveCommand_initTelemetry, _ContextRemoveCommand_initOptions;
|
|
7
7
|
import fs from 'fs';
|
|
8
|
-
import {
|
|
8
|
+
import { cli } from '../../../cli/cli.js';
|
|
9
9
|
import { CommandError } from '../../../Command.js';
|
|
10
10
|
import AnonymousCommand from '../../base/AnonymousCommand.js';
|
|
11
11
|
import commands from '../commands.js';
|
|
@@ -27,7 +27,7 @@ class ContextRemoveCommand extends AnonymousCommand {
|
|
|
27
27
|
await this.removeContext();
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
|
-
const result = await
|
|
30
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the context?` });
|
|
31
31
|
if (result) {
|
|
32
32
|
await this.removeContext();
|
|
33
33
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _ContextOptionRemoveCommand_instances, _ContextOptionRemoveCommand_initTelemetry, _ContextOptionRemoveCommand_initOptions;
|
|
7
7
|
import fs from 'fs';
|
|
8
|
-
import {
|
|
8
|
+
import { cli } from '../../../../cli/cli.js';
|
|
9
9
|
import { CommandError } from '../../../../Command.js';
|
|
10
10
|
import ContextCommand from '../../../base/ContextCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
@@ -30,7 +30,7 @@ class ContextOptionRemoveCommand extends ContextCommand {
|
|
|
30
30
|
await this.removeContextOption(args.options.name, logger);
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
|
-
const result = await
|
|
33
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the context option ${args.options.name}?` });
|
|
34
34
|
if (result) {
|
|
35
35
|
await this.removeContextOption(args.options.name, logger);
|
|
36
36
|
}
|