AsBuiltReport / AsBuiltReport.Core

Repository for AsBuiltReport core module
https://www.asbuiltreport.com
MIT License
54 stars 23 forks source link

Adding support for -Verbose #29

Closed mwpreston closed 4 years ago

mwpreston commented 4 years ago

Adding support for using the -Verbose switch when creating new reports with the New-AsBuiltReport cmdlet

Description

Added a simple if statement to check the presense of the -Verbose switch. If utilized, the PScribo cmdlets and Report related cmdlets are called with -Verbose, otherwise, they aren't.

Related Issue

Resolves Issue 28

Motivation and Context

This allows end users to specify whether or not they wish to see verbose logging messages on the console. This also allows developers of new reports to utilize the Write-Verbose cmdlet to better troubleshoot errors.

How Has This Been Tested?

Tested by running various reports specify verbose and not.

Screenshots (if appropriate):

Types of changes

Checklist:

mwpreston commented 4 years ago

Hi - wondering if everything is all good here or if you need anything modified...? Looking to get some more testing done on the Rubrik piece, and this would certainly help me pin point errors when communicating back and forth with beta testers