Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cmd
 
 
 
 
 
 
 
 
 
 

salad

If you fork this repo... you'll have a salad fork.

@GodloveD

asciicast

Local Development

You will need to install Go, and then have this repository in your src.

$GOPATH/src/github.com/vsoch/salad

go run salad.go

and to format your code (beware, TABS)

go fmt salad.go

Docker

You can clone the repository first and build locally:

docker build -t vanessa/salad .
docker run vanessa/salad

or run directly from Docker Hub:

docker run vanessa/salad

Usage

If you don't give arguments, the entry point will by default run the "fork" executable (the Dockerfile CMD) to print a colored fork:

docker run vanessa/salad

 Fork off, already.  

                   ________  .====
                  [________>< :===
                             '==== 

And if you ask for help, you can see that you can ask for a spoon too!

NAME:
   Salad Fork - Stick this in your salad, with caution, grasshopper!

USAGE:
   salad [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     fork     Fork
     spoon    Spoon
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version   

So in fact, the command that we were running is ./salad fork. Let's ask for a spoon...

$ docker run vanessa/salad spoon

 They say I'd rather spoontaneous!  


        __________        .-"""-.
       /          ''''---' .'    \
       \__________....---. '.    /
                          '-...-'
         

For either command, you can ask for help.

$ docker run vanessa/salad spoon --help
NAME:
   salad spoon - Spoon

USAGE:
   salad spoon [command options] [arguments...]

DESCRIPTION:
   Create a spoon

OPTIONS:
   --message value, -m value  Give wisdom for your spoon.
   --color value, -c value    color your spoon
   

And from the above we learn that we can add a custom color or message.

$ docker run vanessa/salad spoon --message "I wish I had a cupcake"


I wish I had a cupcake  

          ___           .-""-.
         /   '''---...-'.'  '\\
         \___...---"""-._-.__//
                         '---'

       

About

If you fork this repo... you'll have a salad fork.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published