ScriptConfig class

Script configuration for the current project.

Available Extensions

Constructors

ScriptConfig({required String operatingSystem, required String projectType, required Directory projectDir, required Directory hooksDir, required String commitMessageRule, required PreCommitConfig preCommitConfig})
Create the ScriptConfig with the specified projectType, projectDir, hooksDir and preCommitConfig.
const
ScriptConfig.fromJson(Map<String, Object?> json)
Create a ScriptConfig from the provided json.
factory

Properties

commitMessageRule String
Commit message rule
final
hashCode int
The hash code for this object.
no setterinherited
hooksDir Directory
The project's directory on which the script is run against.
final
operatingSystem String
The operating system the script was install
final
preCommitConfig PreCommitConfig
The configuration for pre-commit event.
final
projectDir Directory
The hook's directory where tools are saved.
final
projectType String
The project type on which the script the script is running.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Create json representation of the ScriptConfig.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getDefaultHooksDir(Directory projectDir) Directory
Get default hooks directory for the specified projectDir.

Constants

hooksDirName → const String