Cowsay
.NET adaptation of the JavaScript version of Cowsay
Install / Use
/learn @rawsonm88/CowsayREADME
cowsay (.NET)
__________________
< srsly dude, why? >
------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
cowsay is a configurable talking cow, originally written in Perl by Tony Monroe
This project is a translation in C#/.NET of the original program. It includes both a library for easy integration into your own projects (for example a startup splashscreen for a CLI app) and a standalone CLI tool.
_________________________________
/ Environment Production \
| Service Order |
\ Node lin-1234562 /
---------------------------------
\ ^__^
\ (++)\_______
(__)\ )\/\
||----w |
|| ||
The .cow files were manually copied from https://github.com/piuccio/cowsay.
Install
CLI Tool
dotnet tool install -g Cowsay.CLI
Or with .NET 10+ you can run it directly without installation:
dnx Cowsay.CLI "Hello, World!"
See the CLI documentation for usage instructions.
Library - With .NET DI
dotnet add package Cowsay
dotnet add package Cowsay.Extensions.DependencyInjection
Library - Without .NET DI
dotnet add package Cowsay
Library Usage
With .NET DI
services.AddCowsay();
public class MyClass
{
private ICattleFarmer _cattleFarmer;
public MyClass(ICattleFarmer cattleFarmer)
{
_cattleFarmer = cattleFarmer;
}
public async Task DoThing()
{
var myCow = await cattleFarmer.RearCowAsync("default");
Console.WriteLine(myCow.Say("I was reared on dependency injection.");
}
}
Output
_______________________________________
< I was reared on dependency injection. >
---------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Without .NET DI
var staticCow = await DefaultCattleFarmer.RearCowWithDefaults("default");
Console.WriteLine(staticCow.Say("I'm a static cow, no DI needed.", cowEyes: "xx"));
Output
_________________________________
< I'm a static cow, no DI needed. >
---------------------------------
\ ^__^
\ (xx)\_______
(__)\ )\/\
||----w |
|| ||
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
