RegisterCommand class

Mixed-in types

Constructors

RegisterCommand()
const

Properties

gitDir → String?
no setterinherited
gitHooksDir → String?
Alias for managedHooksDir (kept for existing call sites / tests).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
managedHooksDir → String?
Managed shim directory Git runs via core.hooksPath (hooks/_).
no setterinherited
root → String?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

compile(Iterable<({String executablePath, Future<ProcessResult> process})> executablesToCompile, void fail(String)) → Future<List<String>?>
dartToolGitHooksDir(String root) → Directory
inherited
definedHooks(String root) → (List<DefinedHook>, int?)
executablesDir(String root) → Directory
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareExecutables(List<DefinedHook> definedHooks, {required Directory hooksDartToolDir, required Directory executablesDir}) → Iterable<({String executablePath, Future<ProcessResult> process})>
run() → Future<int>
setHooksPath() → Future<int?>
toString() → String
A string representation of this object.
inherited
writeShims(List<String> executables, {required String managedHooksDir}) → int
Writes thin shims into managedHooksDir that exec compiled binaries.

Operators

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