I made a program with 1 line

It’s the title.
Here’s the link: https://replit.com/@SnakeyKing/Cow-Talks

2 Likes

Well that’s misleading. How about “I made a program with 1 line”

1 Like

Well, you might want to rewrite the body with the new title.

1 Like

Its a program that asks for “What does the cow say?” and passes that text into the cowsay command.

 ______
< Moo! >
 ------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Is this implemented using which library?

cowsay
(sudo apt install cowsay)

Blank Repls are automatically configured with cowsay "Configure me!" upon clicking Run. It’s some Nix package to “introduce” you to replit.nix and .replit.

4 Likes

That command will work on a Debian-based Linux computer, but not in a Repl because Repls don’t let you have root access (sudo). You can install stuff though and sometimes just attempting to run a command will prompt an installation.

3 Likes

I deleted it. I mean, it was trash