ScriptArgument class

Script arguments.

Contains all the argument supported by the script.

Constructors

ScriptArgument({required String projectType, required Directory projectDir, required OperatingSystem operatingSystem, required Directory hooksDir, required String commitMessageRule, required String branchNamingRule, required bool codeStyleCheckEnabled, required bool unitTestsEnabled, required bool integrationTestsEnabled, required bool uiTestsEnabled})
Create ScriptArgument with projectType and projectDir.
const
ScriptArgument.from(ArgResults args)
Create a ScriptArgument from the provided args.
factory

Properties

branchNamingRule String
Branch naming rule as regex.
final
codeStyleCheckEnabled bool
Code style check is enabled.
final
commitMessageRule String
Commit message rule as regex.
final
hashCode int
The hash code for this object.
no setterinherited
hooksDir Directory
Git Hooks Directory.
final
integrationTestsEnabled bool
Integration tests is enabled.
final
operatingSystem OperatingSystem
Current operating system.
final
projectDir Directory
Project directory where the style checker will be executed.
final
projectType String
Type of project the script is running against.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uiTestsEnabled bool
UI tests is enabled.
final
unitTestsEnabled bool
Unit tests is enabled.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toScriptConfig() ScriptConfig
Convert the ScriptArgument to the ScriptConfig.
toString() String
A string representation of this object.
inherited

Operators

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