SkillAgentSearch skills...

Cowsay

.NET adaptation of the JavaScript version of Cowsay

Install / Use

/learn @rawsonm88/Cowsay
About this skill

Quality Score

0/100

Supported Platforms

Universal

Tags

README

cowsay (.NET)

 __________________
< srsly dude, why? >
 ------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

.NET Build Coverage Status

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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated3mo ago
Forks2

Languages

C#

Security Score

67/100

Audited on Nov 29, 2025

No findings