plugins

package
v0.0.0-...-ca671ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

README

Goship Plugins

You can now add plugins to achieve greater developer happiness with Goship.

Currently, Goship allows for plugins to extend the columns of every project on the home page. This is useful as we may wish to show additional details about each projects. For instance, we may wish to add an additional column to show the current health of the repo (e.g., latest Travis test results)

An example of a Travis status badge plugin can be found in the travis folder.

Implementing a Goship Plugin

TODO

Adding Plugins to Goship

To ensure that plugins are implemented onto the Goship application, simply import the plugin in the main plugins/plugins.go file as shown.

Example:

// in plugins/plugins.go
package plugins

// Import plugin packages here
import _ "github.com/gengo/goship/plugins/travis"

With this, when Goship is run, we should see the RenderDetail() and RenderHeader() method of our Travis plugin displaying on the home page!

travis plugin example

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Travis adds Travis build banners to Goship.
Travis adds Travis build banners to Goship.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL