GithubHelp home page GithubHelp logo

arsham / figurine Goto Github PK

View Code? Open in Web Editor NEW
517.0 4.0 22.0 2.08 MB

Print your name in style

License: Apache License 2.0

Go 72.35% Makefile 27.65%
golang go terminal-app eye-candy lolcat figlet command-line

figurine's People

Contributors

arsham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

figurine's Issues

Some fonts seem to have an off-by-one

$ figurine -f "lineblocks.flf" golang
 ______  ______   _    __ ` _________   ______ 
| |     | |  \ \ | |  / /  | | | | | \ | |     
| |---- | |  | | | |-< <   | | | | | | | |---- 
|_|     |_|  |_| |_|  \_\  |_| |_| |_| |_|     

Expected GOLANG but got FNK`MF where each letter is one below what it should be. Anecdotally I'm seeing this on ~25% of fonts, including these

3D Diagonal.flf
3d_diagonal.flf
ASCII New Roman.flf
Bear.flf
Cola.flf
Dancing Font.flf
Diet Cola.flf
Flipped.flf
Flower Power.flf
...

center/width options

Hello,
Would it be possible to add options for centring the output on a target width?
In the past, I was using figlet for showing me the hostname after login. figurine has much more excellent outputs, but I'm missing the option to have it centred in the terminal

Thank you

Unresolved library dependencies

Versions 1.1.1 and 1.1.2 of figurine do not run on stock Debian or RedHat UBI (formerly Centos).

figurine: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by figurine)
figurine: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by figurine)

This is usually a consequence of compiling with CGO_ENABLED=1 and can be fixed by setting CGO_ENABLED=0.

Way to display version number?

Hello,

Thank you for the fun tool. I was wondering if there is a way to display the version number of the binary currently in use? I tried -h for help and it did not show anything useful.

Thanks!

List and select a font

Would be bad ass if we could choose a font to use, as well as list all of the fonts available. I am a fan of figlet/toilet, and could see myself switching to this, if I had the opportunity to select the desired font.

Usage

I'm not too familiar with go. I managed to run the go get command which is a little sparse for readable output. I then run the example $ figurine command which fails because I do not have my PATH setup for binaries created by go get.

After a little poking around my filesystem, this might be a better example:
$ ~/go/bin/figurine text

Those people who are familiar with go will probably automatically translate the paths and those like me who happen to have go installed by something else who wanted to have a play with this will also be well served.

Error when using as a library with gomod

I have a utility I am writing. I am using go 1.11.1 and the project uses go modules. When importing figurine and running the following code:

if err := figurine.Write(os.Stdout, input, fontName); err != nil {
    log.Fatal(err)
}

I receive the following with go test

go: extracting github.com/arsham/figurine v0.3.0
-> unzip /Users/jodewey/go/pkg/mod/cache/download/github.com/arsham/figurine/@v/v0.3.0.zip: malformed file path "bin/Patorjk's Cheese.flf": invalid char '\''

Use as a library?

Any chance this can be extended to be used as a library in other go projects?

Samples with provided msg

Hi!

It would be cool if figurine Text -ls actually printed out the "sample sheet" with Text instead of "GoLang"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.