Skip to content

Commit

Permalink
latest changes after Milan's review
Browse files Browse the repository at this point in the history
  • Loading branch information
reshmee011 committed Nov 20, 2024
1 parent 508b84f commit 376b1b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
43 changes: 19 additions & 24 deletions docs/docs/cmd/spo/homesite/homesite-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ m365 spo homesite list
"Email": "[email protected]",
"Id": "978b5280-4f80-47ea-a1db-b0d1d2fb1ba4",
"Title": "ColumnSearchable Members"
},
{
"Email": "[email protected]",
"Id": "21af775d-17b3-4637-94a4-2ba8625277cb",
"Title": "Contoso TeamR Members"
}
],
"IsInDraftMode": false,
Expand All @@ -62,39 +57,39 @@ m365 spo homesite list
<TabItem value="Text">

```text
Url Title
--------------------------------------------------------------- -------------------
https://contoso.sharepoint.com/sites/TheLanding The Landing
Url Title
--------------------------------------------------------------- -------------------
https://contoso.sharepoint.com/sites/TheLanding The Landing
```

</TabItem>
<TabItem value="CSV">

```csv
IsInDraftMode,IsVivaBackendSite,SiteId,TargetedLicenseType,Title,Url,VivaConnectionsDefaultStart,WebId
0,0,431d7819-4aaf-49a1-b664-b2fe9e609b63,2,The Landing,https://contoso.sharepoint.com/sites/TheLanding,1,626c1724-8ac8-45d5-af87-c07c752fab75
0,0,431d7819-4aaf-49a1-b664-b2fe9e609b63,2,The Landing,https://contoso.sharepoint.com/sites/TheLanding,1,626c1724-8ac8-45d5-af87-c07c752fab75
```

</TabItem>
<TabItem value="Markdown">

```md
m365 spo homesite list
# spo homesite list

Date: 11/18/2024

Property | Value
---------|-------
IsInDraftMode | false
IsVivaBackendSite | false
SiteId | 431d7819-4aaf-49a1-b664-b2fe9e609b63
TargetedLicenseType | 2
Title | The Landing
Url | https://contoso.sharepoint.com/sites/TheLanding
VivaConnectionsDefaultStart | true
WebId | 626c1724-8ac8-45d5-af87-c07c752fab75
```
# spo homesite list

Date: 11/18/2024

Property | Value
---------|-------
IsInDraftMode | false
IsVivaBackendSite | false
SiteId | 431d7819-4aaf-49a1-b664-b2fe9e609b63
TargetedLicenseType | 2
Title | The Landing
Url | https://contoso.sharepoint.com/sites/TheLanding
VivaConnectionsDefaultStart | true
WebId | 626c1724-8ac8-45d5-af87-c07c752fab75
```

</TabItem>
</Tabs>
Expand Down
4 changes: 4 additions & 0 deletions src/m365/spo/commands/homesite/homesite-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { odata } from '../../../../utils/odata.js';
import { spo } from '../../../../utils/spo.js';
import SpoCommand from '../../../base/SpoCommand.js';
import commands from '../../commands.js';
import { CliRequestOptions } from "../../../../request.js";
class SpoHomeSiteListCommand extends SpoCommand {
public get name(): string {
return commands.HOMESITE_LIST;
Expand All @@ -26,6 +27,9 @@ class SpoHomeSiteListCommand extends SpoCommand {
},
responseType: 'json'
};
if (this.verbose) {
await logger.logToStderr(`List all home sites...`);
}
const res = await odata.getAllItems(requestOptions);
await logger.log(res);
}
Expand Down

0 comments on commit 376b1b2

Please sign in to comment.