Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/startautomating/showdemo
A simple tool to showcase your scripts.
https://github.com/startautomating/showdemo
demo demoscene github-actions powershell powershell-module
Last synced: 3 months ago
JSON representation
A simple tool to showcase your scripts.
- Host: GitHub
- URL: https://github.com/startautomating/showdemo
- Owner: StartAutomating
- License: mit
- Created: 2022-12-03T23:54:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-21T17:29:00.000Z (7 months ago)
- Last Synced: 2024-10-02T06:36:08.820Z (4 months ago)
- Topics: demo, demoscene, github-actions, powershell, powershell-module
- Language: PowerShell
- Homepage: https://showdemo.start-automating.com
- Size: 4.81 MB
- Stars: 37
- Watchers: 3
- Forks: 2
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Showcase your Scripts
Want to showcase something you built in PowerShell?
You can make a .demo.ps1 file to showcase your script line by line, like this:
![Demo Of ShowDemo](Assets/demo.gif)
You can also make a .demo.ps1 file as markdown, like [this](demo.md).
Give it a try!
~~~PowerShell
Install-Module ShowDemo -Scope CurrentUser -Force
Import-Module ShowDemo -Force -PassThru
Show-Demo
~~~## Writing Demos
Demo files just simple scripts, named either demo.ps1 or *.demo.ps1.
Each comment or statement that starts in the first column is considered a step.
For an example, check out [demo.ps1](https://github.com/StartAutomating/ShowDemo/blob/main/demo.ps1)
## Using the GitHub Action
To use ShowDemo in a GitHub Action, simply add this line to your workflow:
~~~yaml
- uses: StartAutomating/ShowDemo@main
~~~This will take any demo files and export them as markdown.
## ShowDemo Commands
ShowDemo is a module of few commands. They are:
|Name|Synopsis|
|-|-|
|Get-Demo | Gets Demos |
|Export-Demo| Exports Demos|
|Import-Demo| Imports Demos|
|Resume-Demo| Resumes Demos|
|Show-Demo | Shows Demos |You can Show your demo by running: `Show-Demo -DemoPath .\My.demo.ps1`
Show-Demo is aliased to Start-Demo, it's inspiration
## Inspiration, History, and Goals
In the early days of PowerShell, Jeffery Snover created a useful little script called Start-Demo.
Start-Demo was incredibly useful.
It helped showcase just how cool PowerShell could be, and gave every scripter a simple tool to showcase their scripts.
Start-Demo was written all the way back in PowerShell v1; before the parser API, before markdown, and well before colorized output in Windows Terminal.
ShowDemo is designed to update and replace the old Start-Demo and provide a foundation to give it even more modern capabilities.