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.
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.
listClientNames ()
→ Future <List <String > >
Returns the sorted names of every client directory, or an empty list
when the clients directory does not exist.
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.
printUsage ()
→ void
Prints the usage information for this command.
inherited
recoverInterruptedRun (CleanupService cleanup )
→ Future <void >
Restores the project if a previous build or whitelabel was interrupted
(its .udara backups still exist). Without this, the stale backups
would be restored by this run's cleanup, silently reverting part of the
new client's branding.
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.
run ()
→ FutureOr <void > ?
Runs this command.
inherited
runShell (String command , {String ? workingDir })
→ Future <void >
Runs a shell command in the project directory with structured logging
and exception contextualization.
runStep <T > (String description , Future <T > action () )
→ Future <T >
Wraps a unit of work in consistent logging and exception translation.
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.