CommonProcess class

Common CLI helpers used across the package.

Shared utilities for printing usage, remembering the initial working directory, and performing a simple revert operation when an error occurs.

Constructors

CommonProcess({required FileSystem fs, required ProcessRunner runner, void log(String) = print})

Properties

fs → FileSystem
final
hashCode int
The hash code for this object.
no setterinherited
log → void Function(String)
final
runner ProcessRunner
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteFilesSync({required String filePath}) → void
Deletes a file from the specified path.
getInitialDirectory() → Directory
Returns the directory where the CLI was initially invoked.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printUsage(ArgParser parser) → void
Prints a brief usage summary followed by the parser usage details.
revertAllProcesses({required Directory initialDirectory, required String projectName}) → void
Attempts to remove the created workspace folder when reverting.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited