Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orfeous/goatops-ps-cli
Powershell cli for goatops.com
https://github.com/orfeous/goatops-ps-cli
goatops
Last synced: 8 days ago
JSON representation
Powershell cli for goatops.com
- Host: GitHub
- URL: https://github.com/orfeous/goatops-ps-cli
- Owner: Orfeous
- License: apache-2.0
- Created: 2024-03-26T18:48:04.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-26T19:32:12.000Z (10 months ago)
- Last Synced: 2024-11-12T23:03:43.550Z (2 months ago)
- Topics: goatops
- Language: PowerShell
- Homepage: https://goatops.com
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goatops-ps-cli
Powershell script picking wisdoms from [GoatOps](https://goatops.com)
https://github.com/binford2k/goatops
### Usage
#### Run as script
```
PS> .\goatops.ps1 -Run
-------------------------------------------------------------------
<[ Goats don't have a particular preference between Java and C#. ]>
-------------------------------------------------------------------
\
\
)__(
'|oo|'________/
|__| |
V ||"""""""||
|| ||```
#### Dot source it and use it as a function
```powershell
# Example backup script
try {
....
} catch {
. C:\scripts\goatops.ps1
$goatWisdom = Get-GoatWisdom;
Write-Output "Backups failed...`n${goatWisdom}";
};
``````
PS> .\backup.ps1
Backups failed...
-----------------------------------------------------------------------------------------
<[ Nobody can go through your goat and get you in trouble for what they find in there. ]>
-----------------------------------------------------------------------------------------
\
\
)__(
'|oo|'________/
|__| |
V ||"""""""||
|| ||```
#### In case of an issue with the wisdom retieval, it will just give you a "Meh!"
```
----------
<[ Meh! ]>
----------
\
\
)__(
'|oo|'________/
|__| |
V ||"""""""||
|| ||
```