HookCommands class
The commands run around a part of a run
In a workflow, they are set by pre_platform_run and post_platform_run, and run around all the
platforms. In the build or publish of a platform, they are set by pre_command and post_command,
and run around the build or the publish of that platform
Constructors
- HookCommands({String? pre, String? onSuccess, String? finallyCommand})
-
const
Properties
- finallyCommand → String?
-
Runs last, whether anything has failed before it or not. Set by the
finallykey, which is a reserved word in Dartfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- onSuccess → String?
-
Runs when nothing has failed before it
final
- pre → String?
-
Runs first. When it fails, everything after it is skipped, except for finallyCommand
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromPlatformBlock(
dynamic block, String where) → (HookCommands?, List< BPConfigValidationError> ) -
Reads the
pre_commandandpost_commandof thebuildorpublishof a platform -
fromWorkflow(
YamlMap workflow) → (({HookCommands build, HookCommands publish})?, List< BPConfigValidationError> ) -
Reads the
pre_platform_runandpost_platform_runof a workflow, for both the build and the publish commands