Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: m365 graph openextension add. Closes #6627 #6650

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MartinM85
Copy link
Contributor

Closes #6627

@milanholemans
Copy link
Contributor

Thank you, we'll try to check it soon.

@martinlingstuyl martinlingstuyl self-assigned this Mar 14, 2025
Copy link
Contributor

@martinlingstuyl martinlingstuyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments @MartinM85, looks fine!

m365 graph openextension add --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --resourceType group --name 'com.contoso.roamingSettings' --settings '{"theme": "dark", "color": "red", "language": "English"}' --supportedSystem 'Linux'
```

## Remarks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets move the remarks section above the examples section, and let's add a remark about unknown options.

`-t, --resourceType <resourceType>`
: The resource type for which the extension is created. Allowed values are `user`, `group`, `device`, `organization`.

`--property1 [property1]`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets remove property 1 and 2. Instead we explain in the remarks about using unknown options.


# graph openextension add

Creates a new open extension
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Creates a new open extension
Adds an open extension to a resource

Let's keep this description the same as the one in the command.

try {
const requestBody: any = {};

requestBody["extensionName"]= args.options.name;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
requestBody["extensionName"]= args.options.name;
requestBody["extensionName"] = args.options.name;

@martinlingstuyl martinlingstuyl marked this pull request as draft March 14, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New command: m365 graph openextension add
3 participants