cli-microsoft365
cli-microsoft365 copied to clipboard
Refactor `spo file` to use util instead of calling other command
In this issue the following using of commands is refactored:
| Command | The command to refactor | Util function |
|---|---|---|
spo file roleassignment add |
SpoUserGetCommand | spo.getUserByEmail |
| SpoGroupGetCommand | spo.getGroupByName | |
| SpoRoleDefinitionListCommand | spo.getRoleDefinitionByName | |
| SpoFileGetCommand | spo.getFileById | |
spo file roleassignment remove |
SpoFileGetCommand | spo.getFileById |
| SpoUserGetCommand | spo.getUserByEmail | |
| SpoGroupGetCommand | spo.getGroupByName | |
spo file roleinheritance break |
SpoFileGetCommand | spo.getFileById |
spo file roleinheritance reset |
SpoFileGetCommand | spo.getFileById |
This issue is part of the epic #4531