Class: Executable

Defined in: src/beautifiers/executable.coffee

Direct Known Subclasses

HybridExecutable

Variables Summary

name =
null
cmd =
null
key =
null
homepage =
null
installation =
null
versionArgs =
['--version']
versionRunOptions =
{}
versionsSupported =
'>= 0.0.0'
required =
true
logger =
null

Logger instance

_envCache =
null
_whichCache =
{}

Class Method Summary

Instance Method Summary

Class Method Details

. (void) commandNotFoundError(exe, help)

. (void) shellEnv()

. (void) which(exe, options = {})

. (void) isWindows()

Constructor Details

# (void) constructor(options)

Instance Method Details

# (void) versionParse(text)

# (void) init()

# (void) setupLogger()

Initialize and configure Logger

# (void) loadVersion(force = false)

# (void) runVersion()

# (void) saveVersion(text)

# (void) isSupported()

# (void) isVersion(range)

# (void) versionSatisfies(version, range)

# (void) getConfig()

# (void) run(args, options = {})

Run command-line interface command

# (void) path(cmd = @cmd)

# (void) resolveArgs(args)

# (void) relativizePaths(args)

# (void) spawn(exe, args, options, onStdin)

Spawn

# (void) commandNotFoundError(exe, help)

Add help to error.description

Note: error.description is not officially used in JavaScript, however it is used internally for Atom Beautify when displaying errors.

# (void) shellEnv()

# (void) which(exe, options)

Like the unix which utility.

Finds the first instance of a specified executable in the PATH environment variable. Does not cache the results, so hash -r is not needed when the PATH changes. See https://github.com/isaacs/node-which

# (void) isWindows()

If platform is Windows

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: