cmder

package
v1.0.0-...-4f7f1ef Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Action = func(c *cli.Context) (err error) {
	args := c.Args()
	if args.Present() {
		return cli.ShowCommandHelp(c, args.First())
	}

	cli.ShowAppHelp(c)
	return nil
}

Action application main action

View Source
var After = func(c *cli.Context) (err error) {
	for _, action := range AfterActions {
		if err = action(c); err != nil {
			return
		}
	}
	return
}

After application main action

View Source
var AfterActions = []cli.ActionFunc{}

AfterActions list all after actions

View Source
var Before = func(c *cli.Context) (err error) {
	for _, action := range BeforeActions {
		if err = action(c); err != nil {
			return
		}
	}
	return
}

Before application main action

View Source
var BeforeActions = []cli.ActionFunc{}

BeforeActions list all before actions

View Source
var Commands = []cli.Command{}

Commands list all commands for application

View Source
var DisableVersionCommand = false

DisableVersionCommand do not add version command if DisableVersionCommand == true

View Source
var Flags = []cli.Flag{}

Flags list all global flags for application

View Source
var Name = "cmder"

Name of application

View Source
var Usage string

Usage of application

Functions

func Main

func Main()

Main entry point

func WrapAction

func WrapAction(action cli.ActionFunc) cli.ActionFunc

WrapAction wrap action with default error handler

func WrapMainAction

func WrapMainAction(action cli.ActionFunc) cli.ActionFunc

WrapMainAction wrap main action with default error handler and command helper

Types

This section is empty.

Jump to

Keyboard shortcuts

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