HomeBin class

Constructors

HomeBin(Logger logger, String homeDir)

Properties

hashCode → int
The hash code for this object.
no setterinherited
homeDir → String
final
logger → Logger
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPathToSystem({required String shell, required String profile, required String path}) → bool
Attempts to add path to system environment.
inPath() → (bool, String)
Check ~/bin or ~/.local/bin in PATH. Return a tuple (exist, path).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
profile() → (String, String)?
Get current shell type and its configuration file path (cross-platform)
toString() → String
A string representation of this object.
inherited
where(String executable) → String

Operators

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