File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,16 @@ function Show-Turtle
4
4
. SYNOPSIS
5
5
Shows a Turtle
6
6
. DESCRIPTION
7
- Shows a Turtle by opening it with the default file association.
7
+ Shows a Turtle by opening it with the default file association.
8
8
. NOTES
9
9
It is highly recommended that you show turtles in a browser;
10
- not all drawing programs support the full capabilities of SVG.
10
+ not all drawing programs support the full capabilities of SVG.
11
+
12
+ There are a few circumstances where the Turtle will refuse to show.
13
+
14
+ * If the session is not interactive
15
+ * If $env:GITHUB_WORKFLOW is present
16
+ * If $env:TURTLE_BOT is present
11
17
#>
12
18
[CmdletBinding (PositionalBinding = $false )]
13
19
param (
@@ -31,7 +37,7 @@ function Show-Turtle
31
37
process {
32
38
# If we are not running interactively,
33
39
# we obviously do not want to try to show something on the screen.
34
- if (-not [Environment ]::UserInteractive -or $env: GITHUB_WORKFLOW ) {
40
+ if (-not [Environment ]::UserInteractive -or $env: GITHUB_WORKFLOW -or $ env: TURTLE_BOT ) {
35
41
# Instead, just pass thru our input.
36
42
return $InputObject
37
43
}
You can’t perform that action at this time.
0 commit comments