-
Notifications
You must be signed in to change notification settings - Fork 333
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
base: main
Are you sure you want to change the base?
Conversation
Thank you, we'll try to check it soon. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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]` |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requestBody["extensionName"]= args.options.name; | |
requestBody["extensionName"] = args.options.name; |
Closes #6627