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 finally key, which is a reserved word in Dart
final
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_command and post_command of the build or publish of a platform
fromWorkflow(YamlMap workflow) → (({HookCommands build, HookCommands publish})?, List<BPConfigValidationError>)
Reads the pre_platform_run and post_platform_run of a workflow, for both the build and the publish commands

Constants

commands → const List<String>
The build_pipe commands that pre_platform_run and post_platform_run have hooks for
postKeys → const List<String>
The keys of the post_command and post_platform_run.<command> objects