BuildCommand class
- Inheritance
-
- Object
- Command<
void> - UdaraCommand
- BuildCommand
Constructors
Properties
-
aliases
→ List<
String> -
Alternate names for this command.
no setterinherited
- argParser → ArgParser
-
The argument parser for this command.
no setterinherited
- argResults → ArgResults?
-
The parsed argument results for this command.
no setterinherited
- category → String
-
The command's category.
no setterinherited
- cleanup ↔ CleanupService
-
getter/setter pair
- clientsDir → Directory
-
no setterinherited
- config ↔ ConfigService
-
getter/setter pair
- description → String
-
A description of this command, included in usage.
final
- globalResults → ArgResults?
-
The parsed global argument results.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Whether or not this command should be hidden from help listings.
no setterinherited
- invocation → String
-
A single-line template for how to invoke this command (e.g.
"pub getpackage").no setterinherited - name → String
-
The name of this command.
final
-
parent
→ Command<
void> ? -
The command's parent command, if this is a subcommand.
no setterinherited
- projectDir → String
-
finalinherited
-
runner
→ CommandRunner<
void> ? -
The command runner for this command.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slackService ↔ SlackService?
-
getter/setter pair
-
subcommands
→ Map<
String, Command< void> > -
An unmodifiable view of all sublevel commands of this command.
no setterinherited
-
suggestionAliases
→ List<
String> -
Alternate non-functional names for this command.
no setterinherited
- summary → String
-
A short description of this command, included in parent's
CommandRunner.usage.
no setterinherited
- takesArguments → bool
-
Whether or not this command takes positional arguments in addition to
options.
no setterinherited
- usage → String
-
Generates a string displaying usage information for this command.
no setterinherited
-
An optional footer for usage.
no setterinherited
- whiteLabel ↔ WhiteLabelService
-
getter/setter pair
Methods
-
addSubcommand(
Command< void> command) → void -
Adds Command as a subcommand of this.
inherited
-
checkProjectPrerequisites(
) → void -
Fails early when files the pipeline depends on are absent, pointing at
the command that creates them instead of failing mid-build.
inherited
-
initializeSlackService(
String channel) → Future< SlackService?> -
Builds a SlackService from the stored bot token, or returns null
(with a warning) when Slack has not been configured.
inherited
-
listClientNames(
) → Future< List< String> > -
Returns the sorted names of every client directory, or an empty list
when the
clientsdirectory does not exist.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyBuildStep(
SlackService? slack, {required String step, required String client, required String platform, required String status, String? additionalInfo, String? errorMessage}) → Future< void> -
Sends a build step notification, never letting Slack failures
interrupt the pipeline.
inherited
-
printUsage(
) → void -
Prints the usage information for this command.
inherited
-
resolveClientEnvFile(
String client, {bool isTest = false}) → Future< File> -
Resolves the env file for
client, failing with a helpful message (including the list of known clients) when the client or file is missing.inherited -
run(
) → Future< void> -
Runs this command.
override
-
runShell(
String command, {String? workingDir}) → Future< void> -
Runs a shell command in the project directory with structured logging
and exception contextualization.
inherited
-
runStep<
T> (String description, Future< T> action()) → Future<T> -
Wraps a unit of work in consistent logging and exception translation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
usageException(
String message) → Never -
Throws a UsageException with
message.inherited -
validateEnvVariables(
String client, String file, Map< String, String> vars) → void -
Fails when any of requiredEnvKeys is missing or blank in
vars.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited