Add support for filtering data returned by commands using JMESPath. That way, users can filter the returned data set and work only with the relevant subset without having to use third party tools such as jq. This is similar to what's available in the Azure CLI.
For example:
Retrieve all site collections with /sites/team- in their URL
o365 spo site list --query '[?contains(url, `/sites/team-`)]' --output json
Working PoC is available at https://github.com/waldekmastykarz/office365-cli/tree/jmes-query
Related: #102
Add support for filtering data returned by commands using JMESPath. That way, users can filter the returned data set and work only with the relevant subset without having to use third party tools such as
jq. This is similar to what's available in the Azure CLI.For example:
Retrieve all site collections with
/sites/team-in their URLo365 spo site list --query '[?contains(url, `/sites/team-`)]' --output jsonWorking PoC is available at https://github.com/waldekmastykarz/office365-cli/tree/jmes-query
Related: #102