dashboard

package
v2.0.0-snapshot...-58e3a78 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = models.Command{
	Name:      "dashboard",
	ShortHelp: "Open the Catalyze Dashboard in your default browser",
	LongHelp: "`dashboard` opens up the Catalyze Dashboard homepage in your default web browser. Here is a sample command\n\n" +
		"```\ncatalyze dashboard\n```",
	CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) {
		return func(cmd *cli.Cmd) {
			cmd.Action = func() {
				err := CmdDashboard(New(settings))
				if err != nil {
					logrus.Fatal(err.Error())
				}
			}
		}
	},
}

Cmd is the contract between the user and the CLI. This specifies the command name, arguments, and required/optional arguments and flags for the command.

Functions

func CmdDashboard

func CmdDashboard(id IDashboard) error

Types

type IDashboard

type IDashboard interface {
	Open() error
}

IDashboard

func New

func New(settings *models.Settings) IDashboard

New returns an instance of IDashboard

type SDashboard

type SDashboard struct {
	Settings *models.Settings
}

SDashboard is a concrete implementation of IDashboard

func (*SDashboard) Open

func (d *SDashboard) Open() error

Open opens up the Catalyze Dashboard in the default browser

Jump to

Keyboard shortcuts

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