Skip to content

vsoch/salad

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 40 commits ahead, 21 commits behind GodloveD:master.

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  

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

       

Github Actions

We provide an example Github Actions to deploy the metadata to Github pages, see the .github/main.workflow. For more about schema.org extractors, see the openschemas/extractors repository. This repository has a Dockerfile, so we use the ImageDefinition extractor.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Go 88.6%
  • HCL 7.8%
  • Dockerfile 3.6%