Constructor Summary
Public Constructor | ||
public |
constructor(cmd: Cmd, config: Config, logger: LogObject) |
Member Summary
Public Members | ||
public |
bar: ProgressBar Progress bar. |
|
public |
Command arguments. |
|
public |
Config to pull linkables from. |
|
public |
Current working directory, used to build absolute paths. |
|
public |
destroyLink(path: string): * Destroys symlink and outputs progress. |
|
public |
Paths and associated errors. |
|
public |
logger#log is used to output progress, e.g. |
|
public |
Creates symlink and outputs progress. |
|
public |
Length of longest path. |
|
public |
Number of files and directories. |
|
public |
Verbs to use in composing messages. |
Method Summary
Public Methods | ||
public |
Builds error messages. |
|
public |
Calculates length of longest file or directory name. |
|
public |
Links items and outputs progress. |
|
public |
Outputs error messages. |
|
public |
outputProgress(path: string, error: Error) Outputs status message and updates progress bar. |
|
public |
Outputs success message. |
|
public |
Builds progress message in format `(Un)Linking... |
|
public |
Builds success message. |
|
public |
Unlinks items and outputs progress. |
Public Members
public logger: LogObject source
logger#log is used to output progress, e.g. Logger#log or console#log.
Public Methods
public link(config: Config): Linker source
Links items and outputs progress.
Params:
Name | Type | Attribute | Description |
config | Config |
Return:
Linker |
public outputProgress(path: string, error: Error) source
Outputs status message and updates progress bar.