Giter Club home page Giter Club logo

somesay's Introduction

somesay

A clone of cowsay, written in Go

Installation

The easier way to get somesay is to run the command:

go install github.com/dtpreda/somesay

In alternative, you can clone the repository and run the provided script, which installs the binary in your $GOPATH/bin directory:

git clone [email protected]:dtpreda/somesay.git && cd somesay && ./install.sh

Don't forget to add $GOPATH/bin to your $PATH variable, if you choose to do it this way.

export PATH="$PATH:$(go env GOBIN):$(go env GOPATH)/bin"

In alternative to the script, you main simply use go run to run the program or build it using go build and then running the executable.

Usage

somesay, like cowsay, is a command line utility that prints a message in a speech bubble. Its input should be piped to it, like so:

$ command | somesay

For example, it can be used to print the output of the fortune command:

dtpreda $ fortune | somesay
o------------------------------------------------------------------o
| Will this never-ending series of PLEASURABLE EVENTS never cease? |
o------------------------------------------------------------------o
       \  ^__^
        \ (oo)\_______
          (__)\       )\/\
              ||----w |
              ||     ||
dtpreda $

Contributing

If you want to contribute to somesay, you can do so by forking the repository and submitting a pull request. If you find a bug, please open an issue.

Future Plans

  • Add more animals or figures;
  • Add more options for the speech bubble;
  • Add colors;
  • Add custom animal or figure upload.

Credits

This project was is loosely based on the work developed by Flavio Copes, which can be found here.

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.