Skip to content

Rid/hapesay

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hapesay

hapesay is written in Go. This hapesay is extended the original cowsay and neo cowsay. It has more fun options than the original cowsay, and you can be used as a library.

                                                                  _____________ 
                                                                 < I'm hapesay >
                                                                  ------------- 
                                                                   /
                                                                  /
                                                                 /
                               _,w+=^^"""""^^==pww===._         /
                            mM"            _=^         "w      /
                           P ,    ^      ,^              T    
                          [ ,  ,-     _=`       ,=^JJJ,,7,'_ 
                          ] L       ,^     __-,m^   _   _ T/
                           %L L-^--C   _,="  A   ,^AA! |AAw p
                            ]^ /^""w`/`    ,E   {LMMMA][wMMA m
                            " P   ,  ]     P   |"  oo [ [ oo ]b
                           L |   _'m'F     V    '""Jw<-"`Yp?"''L
                             ]  {  [@]      `"=w,A /^"""<   _,J]y
                           L  _ '_  T L          b `"^^ / Pbw.__]L
                            L  - _,aP N         ,         `_  _^`
                             v        [        /               Y
                              `"-..,_,^       A              '_
                                     '_     _P                '   'L
                                      L     P                  L    L
                                     /     [        _,.----------- _!
                                    /      $                         L
                                    b      ]                       ,P
                                    "_      Y_                    /
                                     'L      L".               ,-]
                                      L__   lMM" ` -.,,,..-wp     b
                                     $ ^'PY#,L       ["%_    ` '`P""
                                    [    v           'p  \
                                ,-^  `=_  `v          ],  `
                           _ ^          ".  `v_        ]Fw \
                        ,-`                ", '0TFM^"""   T EY.
                    _.^                       "w^w        /%b   "w_
                   Powered by hapesay (rid#2535)

About hapesay

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 HAPEPATH 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 hapefiles is added
  • hapefiles in binary
  • random pickup hapefile option
  • provides command-line fuzzy finder to search any hapes with -f - #39
  • coloring filter options
  • super mode
Movies for new options 🍌

Random

asciicast

Rainbow and Aurora, Bold

asciicast

And, Super Hapes mode

2021-11-05.1.25.08.mov

Usage

As command

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

Original Author: (c) 1999 Tony Monroe
Repository: https://github.com/Rid/hapesay

As library

package main

import (
    "fmt"

    hapesay "github.com/Rid/hapesay/v2"
)

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

Examples

Install

Run via Docker

$ docker run riid/hapesay --aurora Hello hapefam!

Binary

You can download from here

library

$ go get github.com/Rid/hapesay/v2

Go

hapesay

$ go install github.com/Rid/hapesay/cmd/v2/hapesay@latest

hapethink

$ go install github.com/Rid/hapesay/cmd/v2/hapethink@latest

License

hapesay license
==============
hapesay License
==============

hapesay 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 hapesay, you suck.

===============
hapesay 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 "hapesay License" section
of this file.

(2) hapesay 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

Hapesay: Rid Neo cowsay: codehex Original: (c) 1999 Tony Monroe

About

🍌 hapesay is cowsay reborn. Hapesay is written in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.2%
  • Makefile 1.6%
  • Dockerfile 0.2%