You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} -Description 'Globally disables asynchronous TEPP updates in the background'
26
38
Set-DbatoolsConfig-FullName 'TabExpansion.Disable.Synchronous'-Value $true-Initialize -Validation bool -Handler { [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::TeppSyncDisabled =$args[0] } -Description 'Globally disables synchronous TEPP updates, performed whenever connecting o the server. If this is not disabled, it will only perform updates that are fast to perform, in order to minimize performance impact. This may lead to some TEPP functionality loss if asynchronous updates are disabled.'
Set-DbatoolsConfig-Name 'message.minimumverbose'-Value 4-Initialize -Validation integer0to9 -Handler { [Dataplat.Dbatools.Message.MessageHost]::MinimumVerbose =$args[0] } -Description "The minimum required message level where verbose information is written."
12
12
Set-DbatoolsConfig-Name 'message.minimumdebug'-Value 1-Initialize -Validation integer0to9 -Handler { [Dataplat.Dbatools.Message.MessageHost]::MinimumDebug =$args[0] } -Description "The minimum required message level where debug information is written."
13
13
14
-
# Default color used by the "Write-Message" function in info mode
15
-
Set-DbatoolsConfig-Name 'message.infocolor'-Value 'Cyan'-Initialize -Validation consolecolor -Handler { [Dataplat.Dbatools.Message.MessageHost]::InfoColor =$args[0] } -Description "The color to use when writing text to the screen on PowerShell."
16
-
Set-DbatoolsConfig-Name 'message.developercolor'-Value 'Grey'-Initialize -Validation consolecolor -Handler { [Dataplat.Dbatools.Message.MessageHost]::DeveloperColor =$args[0] } -Description "The color to use when writing text with developer specific additional information to the screen on PowerShell."
17
-
Set-DbatoolsConfig-Name 'message.info.color.emphasis'-Value 'green'-Initialize -Validation "consolecolor"-Handler { [Dataplat.Dbatools.Message.MessageHost]::InfoColorEmphasis =$args[0] } -Description "The color to use when emphasizing written text to the screen on PowerShell."
18
-
Set-DbatoolsConfig-Name 'message.info.color.subtle'-Value 'gray'-Initialize -Validation "consolecolor"-Handler { [Dataplat.Dbatools.Message.MessageHost]::InfoColorSubtle =$args[0] } -Description "The color to use when making writing text to the screen on PowerShell appear subtle."
19
14
Set-DbatoolsConfig-Name 'message.consoleoutput.disable'-Value $false-Initialize -Validation "bool"-Handler { [Dataplat.Dbatools.Message.MessageHost]::DisableVerbosity =$args[0] } -Description "Global toggle that allows disabling all regular messages to screen. Messages from '-Verbose' and '-Debug' are unaffected"
20
15
Set-DbatoolsConfig-Name 'message.transform.errorqueuesize'-Value 512-Initialize -Validation "integerpositive"-Handler { [Dataplat.Dbatools.Message.MessageHost]::TransformErrorQueueSize =$args[0] } -Description "The size of the queue for transformation errors. May be useful for advanced development, but can be ignored usually."
21
16
Set-DbatoolsConfig-Name 'message.nestedlevel.decrement'-Value 0-Initialize -Validation "integer0to9"-Handler { [Dataplat.Dbatools.Message.MessageHost]::NestedLevelDecrement =$args[0] } -Description "How many levels should be reduced per callstack depth. This makes commands less verbose, the more nested they are called"
22
17
23
-
# Messaging mode in non-critical terminations
24
-
Set-DbatoolsConfig-Name 'message.mode.default'-Value ([DbaMode]::Strict) -Initialize -Validation string -Handler { } -Description "The mode controls how some functions handle non-critical terminations by default. Strict: Write a warning | Lazy: Write a message | Report: Generate a report object"
25
-
Set-DbatoolsConfig-Name 'message.mode.lazymessagelevel'-Value 4-Initialize -Validation integer0to9 -Handler { } -Description "At what level will the lazy message be written? (By default invisible to the user)"
26
-
27
-
# Enable Developer mode
28
-
Set-DbatoolsConfig-Name 'developer.mode.enable'-Value $false-Initialize -Validation bool -Handler { [Dataplat.Dbatools.Message.MessageHost]::DeveloperMode =$args[0] } -Description "Developermode enables advanced logging and verbosity features. There is little benefit for enabling this as a regular user. but developers can use it to more easily troubleshoot issues."
29
-
30
18
# Message display style options
31
19
Set-DbatoolsConfig-Name 'message.style.breadcrumbs'-Value $false-Initialize -Validation "bool"-Handler { [Dataplat.Dbatools.Message.MessageHost]::EnableMessageBreadcrumbs =$args[0] } -Description "Controls how messages are displayed. Enables Breadcrumb display, showing the entire callstack. Takes precedence over command name display."
32
20
Set-DbatoolsConfig-Name 'message.style.functionname'-Value $true-Initialize -Validation "bool"-Handler { [Dataplat.Dbatools.Message.MessageHost]::EnableMessageDisplayCommand =$args[0] } -Description "Controls how messages are displayed. Enables command name, showing the name of the writing command. Is overwritten by enabling breadcrumbs."
it has come to our attention that you are not sufficiently <c="darkblue">awesome!</c>
42
-
Kindly improve your <c="yellow">AP</c> (<c="magenta">awesome-ness points</c>) by at least 50% to maintain you membership in Awesome Inc!
43
-
44
-
You have <c="green">27 3/4</c> days time to meet this deadline. <c="darkyellow">After this we will unfortunately be forced to rend you assunder and sacrifice your remains to the devil</c>.
45
-
46
-
Best regards,
47
-
<c="red">Luzifer</c>
48
-
"@
49
-
Write-HostColor -String $stringLong
50
-
51
-
Will print a long multiline text in its entirety while still respecting the colorcodes
Copy file name to clipboardExpand all lines: public/Remove-DbaAgentJobStep.ps1
+2-23Lines changed: 2 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,6 @@ function Remove-DbaAgentJobStep {
22
22
.PARAMETERStepName
23
23
The name of the job step.
24
24
25
-
.PARAMETERMode
26
-
Default: Strict
27
-
How strict does the command take lesser issues?
28
-
Strict: Interrupt if the configuration already has the same value as the one specified.
29
-
Lazy: Silently skip over instances that already have this configuration at the specified value.
30
-
31
25
.PARAMETERWhatIf
32
26
If this switch is enabled, no actions are performed but informational messages will be displayed that explain what would happen if the command were to run.
33
27
@@ -82,7 +76,6 @@ function Remove-DbaAgentJobStep {
0 commit comments