Documentation
¶
Overview ¶
Package exec allows invoking other commands, including triggering the manual, opening a document, or opening a Web page in the default Web browser. It also provides a representation of the flag value syntax used by the -exec expression in Unix-like find designed to pass the name of a command and its arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open a file or URL, optionally in the given app. Either one or two arguments is specified, the name/URL of the file to open and the name of the app to use. If the argument looks like a URL, then it triggers the use of the protocol handler associated with the protocol if no app is specified.
Types ¶
type ArgList ¶
type ArgList []string
ArgList provides a value that describes a command and its arguments used as a flag, arg, or expression Value. This uses the syntax that the find -exec expression uses, which is terminated by a semi-colon or plus sign. (e.g. -exec COMMAND ; or -exec COMMAND {} +).
func (*ArgList) NewCounter ¶
func (l *ArgList) NewCounter() cli.ArgCounter
func (*ArgList) UsePlaceholder ¶
UsePlaceholder gets whether the arg list ended with +, which is used to indicate that the {} placeholder is to be expanded