commands

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2013 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Console commands management

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Name() string
	Run(line []string) error
	Complete(line []string) ([]string, error)
	Help(line []string) (string, error)
}

type Commander

type Commander interface {
	Command(name string) Command
	Default() Command
	Commands(filter string) ([]string, error)
}

func NewCommander

func NewCommander(remoter remote.Remoter, srv server.Server, config core.Config, mmi ui.UserInteraction) (result Commander, err error)

type CompositeCommand

type CompositeCommand interface {
	Command
	Commander
}

Jump to

Keyboard shortcuts

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