Created
May 29, 2020 23:42
-
-
Save alexandair/04c861021aef6f46c87d2b8921fa7a35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Test tour", | |
"steps": [ | |
{ | |
"file": "Test-CodeTour.ps1", | |
"line": 4, | |
"description": "### Step 1\r\n\r\nThis is the first command in the script.\r\nIt will show you today's date. Simple as that.", | |
"contents": "\r\n# a script to test the CodeTour extension\r\n\r\nGet-Date\r\n\r\nfunction foo {\r\n Write-Output \"foo\"\r\n}\r\n\r\n# Call a function\r\nfoo\r\n\r\n" | |
}, | |
{ | |
"file": "Test-CodeTour.ps1", | |
"line": 6, | |
"description": "### Step 2\r\nThis is an example function. You can run it easily, just type its name ```foo```.\r\n\r\n>> pwsh -c {gci variable:\\psversiontable | select -ExpandProperty value}\r\n\r\nNew command:\r\n>> Get-Date ", | |
"contents": "\r\n# a script to test the CodeTour extension\r\n\r\nGet-Date\r\n\r\nfunction foo {\r\n Write-Output \"foo\"\r\n}\r\n\r\n# Call a function\r\nfoo\r\n\r\n" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment