Skip to content

Commit

Permalink
Adds the 'onedrive list' command. Closes #2230
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulkelkar authored and waldekmastykarz committed Jul 1, 2021
1 parent 9c0725e commit 0e2a897
Show file tree
Hide file tree
Showing 6 changed files with 298 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -38,6 +38,7 @@ const dictionary = [
'news',
'oauth2',
'office365',
'one',
'org',
'o365',
'permission',
Expand Down
21 changes: 21 additions & 0 deletions docs/docs/cmd/onedrive/onedrive-list.md
@@ -0,0 +1,21 @@
# onedrive list

Retrieves a list of OneDrive sites

## Usage

```sh
m365 onedrive list [options]
```

## Options

--8<-- "docs/cmd/_global.md"

## Examples

Retrieves a list of OneDrive sites from the tenant.

```sh
m365 onedrive list
```
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Expand Up @@ -105,6 +105,7 @@ nav:
- subscription:
- subscription add: 'cmd/graph/subscription/subscription-add.md'
- OneDrive (onedrive):
- list: 'cmd/onedrive/onedrive-list.md'
- report:
- report activityfilecounts: 'cmd/onedrive/report/report-activityfilecounts.md'
- report activityusercounts: 'cmd/onedrive/report/report-activityusercounts.md'
Expand Down
1 change: 1 addition & 0 deletions src/m365/onedrive/commands.ts
@@ -1,6 +1,7 @@
const prefix: string = 'onedrive';

export default {
LIST:`${prefix} list`,
REPORT_ACTIVITYFILECOUNTS: `${prefix} report activityfilecounts`,
REPORT_ACTIVITYUSERCOUNTS: `${prefix} report activityusercounts`,
REPORT_ACTIVITYUSERDETAIL: `${prefix} report activityuserdetail`,
Expand Down

0 comments on commit 0e2a897

Please sign in to comment.