MyGit

Code-Hex/Neo-cowsay

Fork: 22 Star: 317 (更新于 2024-11-28 12:06:13)

license: Artistic-2.0

Language: Go .

🐮 cowsay is reborn. Neo Cowsay has written in Go.

最后发布版本: v2.0.4 ( 2022-02-25 01:05:53)

GitHub网址

Neo Cowsay

Neo Cowsay is written in Go. This cowsay is extended the original cowsay. added fun more options, and you can be used as a library.

for GitHub Actions users: Code-Hex/neo-cowsay-action

Go Reference .github/workflows/main.yml Go Report Card codecov

 ______________
< I'm Neo cows >
 --------------
       \   ^__^
        \  (oo)\_______
           (__)\       )\/\
               ||----w |
               ||     ||

About cowsay

According to the original original manual.

cowsay is a configurable talking cow, written in Perl. It operates
much as the figlet program does, and it written in the same spirit
of silliness.

This is also supported COWPATH env. Please read more details in #33 if you want to use this.

What makes it different from the original?

  • fast
  • utf8 is supported
  • new some cowfiles is added
  • cowfiles in binary
  • random pickup cowfile option
  • provides command-line fuzzy finder to search any cows with -f - #39
  • coloring filter options
  • super mode
Movies for new options 🐮

Random

asciicast

Rainbow and Aurora, Bold

asciicast

And, Super Cows mode

https://user-images.githubusercontent.com/6500104/140379043-53e44994-b1b0-442e-bda7-4f7ab3aedf01.mov

Usage

As command

cow{say,think} version 2.0.0, (c) 2021 codehex
Usage: cowsay [-bdgpstwy] [-h] [-e eyes] [-f cowfile] [--random]
      [-l] [-n] [-T tongue] [-W wrapcolumn]
      [--bold] [--rainbow] [--aurora] [--super] [message]

Original Author: (c) 1999 Tony Monroe
Repository: https://github.com/Code-Hex/Neo-cowsay

Normal

$ cowsay Hello
 _______
< Hello >
 -------
       \   ^__^
        \  (oo)\_______
           (__)\       )\/\
               ||----w |
               ||     ||

Borg mode

$ cowsay -b Hello
 _______
< Hello >
 -------
       \   ^__^
        \  (==)\_______
           (__)\       )\/\
               ||----w |
               ||     ||

As library

package main

import (
	"fmt"

	cowsay "github.com/Code-Hex/Neo-cowsay/v2"
)

func main() {
	say, err := cowsay.Say(
		"Hello",
		cowsay.Type("default"),
		cowsay.BallonWidth(40),
	)
	if err != nil {
		panic(err)
	}
	fmt.Println(say)
}

Examples or GoDoc

Install

Windows users via Scoop

$ scoop install neo-cowsay

Windows users via Winget

$ winget install neo-cowsay

Mac and Linux users via Homebrew

$ brew update
$ brew install Code-Hex/tap/neo-cowsay

Binary

You can download from here

library

$ go get github.com/Code-Hex/Neo-cowsay/v2

Go

cowsay

$ go install github.com/Code-Hex/Neo-cowsay/cmd/v2/cowsay@latest

cowthink

$ go install github.com/Code-Hex/Neo-cowsay/cmd/v2/cowthink@latest

License

cowsay license
==============
cowsay License
==============

cowsay is distributed under the same licensing terms as Perl: the
Artistic License or the GNU General Public License.  If you don't
want to track down these licenses and read them for yourself, use
the parts that I'd prefer:

(0) I wrote it and you didn't.

(1) Give credit where credit is due if you borrow the code for some
other purpose.

(2) If you have any bugfixes or suggestions, please notify me so
that I may incorporate them.

(3) If you try to make money off of cowsay, you suck.

===============
cowsay Legalese
===============

(0) Copyright (c) 1999 Tony Monroe.  All rights reserved.  All
lefts may or may not be reversed at my discretion.

(1) This software package can be freely redistributed or modified
under the terms described above in the "cowsay License" section
of this file.

(2) cowsay is provided "as is," with no warranties whatsoever,
expressed or implied.  If you want some implied warranty about
merchantability and/or fitness for a particular purpose, you will
not find it here, because there is no such thing here.

(3) I hate legalese.

(The Artistic License or The GNU General Public License)

Author

Neo Cowsay: codehex
Original: (c) 1999 Tony Monroe

最近版本更新:(数据更新于 2024-09-21 05:27:07)

2022-02-25 01:05:53 v2.0.4

2021-11-14 17:26:30 v2.0.3

2021-11-14 15:31:19 v2.0.2

2021-11-13 09:10:31 v2.0.1

2021-11-12 20:07:45 v2.0.0

2021-11-03 11:29:31 v1.0.4

2021-07-15 00:12:13 v1.0.3

2021-07-13 19:37:03 v1.0.2

2020-02-15 12:05:59 v1.0.1

2019-12-17 20:45:06 v1.0.0

主题(topics):

cowsay, go, go-packages, godoc, golang, joke, neo-cowsay

Code-Hex/Neo-cowsay同语言 Go最近更新仓库

2024-12-22 07:52:58 navidrome/navidrome

2024-12-21 20:15:12 SagerNet/sing-box

2024-12-21 03:25:54 SpecterOps/BloodHound

2024-12-19 23:11:24 shadow1ng/fscan

2024-12-19 21:50:56 minio/minio

2024-12-19 10:04:39 istio/istio