code-hex / neo-cowsay Goto Github PK
View Code? Open in Web Editor NEW๐ฎ cowsay is reborn. Neo Cowsay has written in Go.
License: Artistic License 2.0
๐ฎ cowsay is reborn. Neo Cowsay has written in Go.
License: Artistic License 2.0
Hello,
I',m trying update FreeBSD port from 2.0.1 to 2.0.3 but I receive this error:
===> Building neo-cowsay from ./cmd/cowsay main module (github.com/Code-Hex/Neo-cowsay/v2) does not contain package github.com/Code-Hex/Neo-cowsay/v2/cmd/cowsay
Port Makefile uses:
GO_TARGET= ./cmd/cowsay:neo-cowsay ./cmd/cowthink:neo-cowthink
so it gets to ./cmd/cowsay and builds it like cowthink (and changes is name to neo-*)
What should have changed from 2.0.1 that originates this error?
Full port Makefile:
PORTNAME= neo-cowsay
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.3
CATEGORIES= games
MAINTAINER= [email protected]
COMMENT= Neo Cowsay written in Go
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
LICENSE_FILE_GPLv1+ = ${WRKSRC}/LICENSE
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= Code-Hex
GH_PROJECT= Neo-cowsay
GH_TUPLE= \
Code-Hex:go-wordwrap:v1.0.0:code_hex_go_wordwrap/vendor/github.com/Code-Hex/go-wordwrap \
golang:xerrors:5ec99f83aff1:golang_xerrors/vendor/golang.org/x/xerrors \
google:go-cmp:v0.5.6:google_go_cmp/vendor/github.com/google/go-cmp \
mattn:go-runewidth:v0.0.13:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
rivo:uniseg:v0.2.0:rivo_uniseg/vendor/github.com/rivo/uniseg
GO_TARGET= ./cmd/cowsay:neo-cowsay ./cmd/cowthink:neo-cowthink
PLIST_FILES= bin/neo-cowsay \
bin/neo-cowthink
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
post-install:
.for l in neo-cowsay neo-cowthink
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${l}
.endfor
.include <bsd.port.mk>
Thanks,
Nuno Teixeira
lolcat
provides a wonderful way to really test this out.
I use go install github.com/Code-Hex/Neo-cowsay/v2/cmd/cowsay@latest
to install the latest version, but it shows the following error:
go install: github.com/Code-Hex/Neo-cowsay/v2/cmd/cowsay@latest: module github.com/Code-Hex/Neo-cowsay/v2@latest found (v2.0.3), but does not contain package github.com/Code-Hex/Neo-cowsay/v2/cmd/cowsay
I think it is somehow related to subdirectory versioning.
go version go1.17.4 linux/amd64
Trying to load a cow that works with og perl cowsay that has an image converted to ansi escape sequences does nothing but print the raw text.
Is this the expected behavior or is color support not included yet at this point?
https://raw.githubusercontent.com/charc0al/cowsay-files/master/cows/butcher.cow
cowsay -f butcher Testing
$x = "\e[49m "; #reset color
$t = "\ ";
$a = "\e[48;5;235m ";
$b = "\e[48;5;234m ";
$c = "\e[48;5;233m ";
$d = "\e[48;5;236m ";
$e = "\e[48;5;237m ";
$f = "\e[48;5;223m ";
$g = "\e[48;5;238m ";
$h = "\e[48;5;231m ";
$i = "\e[48;5;94m ";
$j = "\e[48;5;180m ";
$k = "\e[48;5;137m ";
$l = "\e[48;5;138m ";
$m = "\e[48;5;239m ";
$n = "\e[48;5;181m ";
$o = "\e[48;5;244m ";
$p = "\e[48;5;66m ";
$q = "\e[48;5;23m ";
$r = "\e[48;5;250m ";
$s = "\e[48;5;109m ";
$u = "\e[48;5;251m ";
$v = "\e[48;5;248m ";
$w = "\e[48;5;246m ";
I have written my own cowfile which works fine with the old cowsay if I specify the path to it. However neo cowsay compiles cowfiles into the binary, and if I try to reference the external one I get:
$ cowsay -f Documents/Scripts/fujao.cow aaa
cowsay: could not find Documents/Scripts/fujao.cow cowfile
How do I get around this?
It's nice to have the option to have different balloon border styles. Default to the cowsay's style.
It is inspired from ponysay which have different border styles.
I just downloaded the binaries on the releases page and it does not work out of the box, it gives out this error:
$ echo "Hello World!" | cowsay
cowsay: open cows\default.cow: file does not exist
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.