• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H13-Nov-2021-5957

bin/H07-May-2022-

cmd/H13-Nov-2021-3424

cows/H13-Nov-2021-822766

doc/H13-Nov-2021-251211

eg/H13-Nov-2021-4437

internal/H13-Nov-2021-1,2651,055

testdata/H13-Nov-2021-87

vendor/H03-May-2022-1,132,3901,002,315

.gitignoreH A D13-Nov-2021315 3124

.goreleaser.ymlH A D13-Nov-20212.1 KiB114108

LICENSEH A D13-Nov-20218.7 KiB201151

MakefileH A D13-Nov-2021586 3123

README.mdH A D13-Nov-20214.8 KiB200143

balloon.goH A D13-Nov-20213.2 KiB165137

cow.goH A D13-Nov-20213.8 KiB212166

cow_test.goH A D13-Nov-20212.2 KiB137129

cowsay.goH A D13-Nov-20213.7 KiB170131

cowsay_test.goH A D13-Nov-20213.1 KiB155134

embed.goH A D13-Nov-2021847 4127

go.modH A D13-Nov-2021650 2017

go.sumH A D13-Nov-20215.2 KiB5857

split.goH A D13-Nov-2021142 115

split_windows.goH A D13-Nov-2021140 115

README.md

1# Neo Cowsay
2
3Neo Cowsay is written in Go. This cowsay is extended the original cowsay. added fun more options, and you can be used as a library.
4
5for GitHub Actions users: [Code-Hex/neo-cowsay-action](https://github.com/marketplace/actions/neo-cowsay)
6
7[![Go Reference](https://pkg.go.dev/badge/github.com/Code-Hex/Neo-cowsay/v2.svg)](https://pkg.go.dev/github.com/Code-Hex/Neo-cowsay/v2) [![.github/workflows/main.yml](https://github.com/Code-Hex/Neo-cowsay/actions/workflows/main.yml/badge.svg)](https://github.com/Code-Hex/Neo-cowsay/actions/workflows/main.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/Code-Hex/Neo-cowsay)](https://goreportcard.com/report/github.com/Code-Hex/Neo-cowsay)
8
9```
10 ______________
11< I'm Neo cows >
12 --------------
13       \   ^__^
14        \  (oo)\_______
15           (__)\       )\/\
16               ||----w |
17               ||     ||
18```
19
20## About cowsay
21
22According to the [original](https://web.archive.org/web/20071026043648/http://www.nog.net/~tony/warez/cowsay.shtml) original manual.
23
24```
25cowsay is a configurable talking cow, written in Perl. It operates
26much as the figlet program does, and it written in the same spirit
27of silliness.
28```
29
30This is also supported `COWPATH` env. Please read more details in [#33](https://github.com/Code-Hex/Neo-cowsay/pull/33) if you want to use this.
31
32## What makes it different from the original?
33
34- fast
35- utf8 is supported
36- new some cowfiles is added
37- cowfiles in binary
38- random pickup cowfile option
39- provides command-line fuzzy finder to search any cows with `-f -` [#39](https://github.com/Code-Hex/Neo-cowsay/pull/39)
40- coloring filter options
41- super mode
42
43<details>
44<summary>Movies for new options ��</summary>
45
46### Random
47
48[![asciicast](https://asciinema.org/a/228210.svg)](https://asciinema.org/a/228210)
49
50### Rainbow and Aurora, Bold
51
52[![asciicast](https://asciinema.org/a/228213.svg)](https://asciinema.org/a/228213)
53
54## And, Super Cows mode
55
56https://user-images.githubusercontent.com/6500104/140379043-53e44994-b1b0-442e-bda7-4f7ab3aedf01.mov
57
58</details>
59
60## Usage
61
62### As command
63
64```
65cow{say,think} version 2.0.0, (c) 2021 codehex
66Usage: cowsay [-bdgpstwy] [-h] [-e eyes] [-f cowfile] [--random]
67      [-l] [-n] [-T tongue] [-W wrapcolumn]
68      [--bold] [--rainbow] [--aurora] [--super] [message]
69
70Original Author: (c) 1999 Tony Monroe
71Repository: https://github.com/Code-Hex/Neo-cowsay
72```
73Normal
74```
75$ cowsay Hello
76 _______
77< Hello >
78 -------
79       \   ^__^
80        \  (oo)\_______
81           (__)\       )\/\
82               ||----w |
83               ||     ||
84```
85Borg mode
86```
87$ cowsay -b Hello
88 _______
89< Hello >
90 -------
91       \   ^__^
92        \  (==)\_______
93           (__)\       )\/\
94               ||----w |
95               ||     ||
96```
97
98### As library
99
100```go
101package main
102
103import (
104	"fmt"
105
106	cowsay "github.com/Code-Hex/Neo-cowsay/v2"
107)
108
109func main() {
110	say, err := cowsay.Say(
111		"Hello",
112		cowsay.Type("default"),
113		cowsay.BallonWidth(40),
114	)
115	if err != nil {
116		panic(err)
117	}
118	fmt.Println(say)
119}
120```
121
122[Example](https://github.com/Code-Hex/Neo-cowsay/blob/master/eg/main.go) or [GoDoc](https://pkg.go.dev/github.com/Code-Hex/Neo-cowsay/v2)
123
124## Install
125
126### Mac and Linux users via Homebrew
127
128    $ brew update
129    $ brew install Code-Hex/tap/neo-cowsay
130
131### Binary
132
133You can download from [here](https://github.com/Code-Hex/Neo-cowsay/releases)
134
135### library
136
137    $ go get github.com/Code-Hex/Neo-cowsay/v2
138
139### Go
140
141#### cowsay
142
143    $ go install github.com/Code-Hex/Neo-cowsay/v2/cmd/cowsay@latest
144
145#### cowthink
146
147    $ go install github.com/Code-Hex/Neo-cowsay/v2/cmd/cowthink@latest
148
149## License
150
151<details>
152<summary>cowsay license</summary>
153
154```
155==============
156cowsay License
157==============
158
159cowsay is distributed under the same licensing terms as Perl: the
160Artistic License or the GNU General Public License.  If you don't
161want to track down these licenses and read them for yourself, use
162the parts that I'd prefer:
163
164(0) I wrote it and you didn't.
165
166(1) Give credit where credit is due if you borrow the code for some
167other purpose.
168
169(2) If you have any bugfixes or suggestions, please notify me so
170that I may incorporate them.
171
172(3) If you try to make money off of cowsay, you suck.
173
174===============
175cowsay Legalese
176===============
177
178(0) Copyright (c) 1999 Tony Monroe.  All rights reserved.  All
179lefts may or may not be reversed at my discretion.
180
181(1) This software package can be freely redistributed or modified
182under the terms described above in the "cowsay License" section
183of this file.
184
185(2) cowsay is provided "as is," with no warranties whatsoever,
186expressed or implied.  If you want some implied warranty about
187merchantability and/or fitness for a particular purpose, you will
188not find it here, because there is no such thing here.
189
190(3) I hate legalese.
191```
192
193</details>
194
195(The Artistic License or The GNU General Public License)
196
197## Author
198Neo Cowsay: [codehex](https://twitter.com/CodeHex)
199Original: (c) 1999 Tony Monroe
200