cli-microsoft365
cli-microsoft365 copied to clipboard
Enhances `flow get`
Closes #4683
I did not update the doc file with the entire output of a command, as this can get very long. I ran the command with --output json
on a very small flow with just four actions and it returned more than 15000 lines of details. This would make the doc file way too large I think.
Thank you @MathijsVerbeeck, we'll try to review it soon.
@martinlingstuyl I've changed your requests. Could you please have another look?
About that mock file @MathijsVerbeeck, that now seems to contain 14000+ lines. Is it an idea if we use the same json as used in the docs? To get down on the nr of lines?
About that mock file @MathijsVerbeeck, that now seems to contain 14000+ lines. Is it an idea if we use the same json as used in the docs? To get down on the nr of lines?
That wouldn't cover all 'branches' of code, as we add some things to the response at lines 103-104 in flow-get.ts, so then we wouldn't have all code coverage 😄
Ok, I see... maybe we could switch it to a manual trigger though? That would remove quite some code I believe, among other things the whole connectionReferences node.
We could, yes, but then I perhaps will have to add a part that tests this code manually to the mock. Is that fine?
@martinlingstuyl PR should be ready to review. I've changed the flow-get mock file.
Merged manually, thank you! 😁