Property | Type | Description | |
---|---|---|---|
$_files | array | Files | |
$_mkdirCommand | string | mkdir command to use for creating folders/paths. | |
$_paths | array | Paths | |
$_staged | array | Staged changes for processing at the end |
Method | Description | |
---|---|---|
__construct ( |
{@inheritDoc} | |
change ( string $filePath, string $original, string $updated ) : boolean | Store a change for a file | |
clear ( ) : void | Clears the change log. | |
commit ( string $path = null ) : void | Write staged changes | |
delete ( string $path ) : boolean | delete | |
files ( array $excludes = [], boolean $reset = false ) : array | Searches the paths and finds files based on extension. | |
move ( string $from, string $to ) : boolean | move | |
source ( string $path ) : string | Get the source of a file, taking into account that there may be incremental diffs |
Method | Description | |
---|---|---|
_getPath ( ) : string | Get the path to operate on. Uses either the first argument, or the plugin parameter if its set. | |
_gitMove ( string $gitCd, string $from, string $to ) : void | Moves files or folders using GIT. | |
_makeDir ( string $path ) : void | Creates a directory/path. |
public __construct ( |
||
$io |
protected string $_mkdirCommand | ||
return | string |
protected array $_staged | ||
return | array |