tom_build_kit library

Tom Build Kit - Build orchestration and CLI tools.

Provides the v2 executor-based build infrastructure for the buildkit CLI. All build commands are implemented as native v2 CommandExecutors.

Classes

BuildkitVersionInfo
Version information generated at build time.
BuiltinCommands
Registry of built-in commands that can be executed within pipelines.
CommandSection
Configuration for a command section (precompile, postcompile).
CompileSection
Configuration for a single compilation section.
DcliExecutor
Executor for :dcli command.
DcliPromptDriver
PromptDriver backed by the dcli package (real terminal I/O).
GuidedGitFlows
Resolves interactive git guided flows into command-line option flags.
GuidedMode
Helper class for guided mode interactions.
PlatformUtils
Platform name mappings and conversion utilities for cross-compilation.
ProjectGroupPicker
Project group picker for selecting project scopes in git operations.
ProjectGroupSelection
Result of project group selection.
PromptDriver
Raw interactive-prompt primitives used by GuidedMode.
PubGetAllExecutor
Executor for :pubgetall - alias for :pubget with full recursive.
PubGetCommand
Executes dart pub get across multiple projects.
PubGetExecutor
Executor for :pubget - runs dart pub get or flutter pub get per project.
PubGetResult
Result of a pub get execution for a single project.
PubUpdateAllExecutor
Executor for :pubupdateall - alias for :pubupdate with full recursive.
PubUpdateCommand
Executes dart pub upgrade across multiple projects.
PubUpdateExecutor
Executor for :pubupdate - runs dart pub upgrade or flutter pub upgrade per project.
PubUpdateResult
Result of a pub upgrade execution for a single project.
ScriptedPromptDriver
PromptDriver that replays a fixed list of answers for tests.

Enums

GuidedResult
Result of a guided mode operation.
ProjectScope
Represents a project scope group for git operations.

Constants

buildsorterCommand → const CommandDefinition
buildsorterOptions → const List<OptionDefinition>
Options for buildsorter command.
bumppubspecCommand → const CommandDefinition
bumppubspecOptions → const List<OptionDefinition>
Options for bumppubspec command.
bumpversionCommand → const CommandDefinition
bumpversionOptions → const List<OptionDefinition>
Options for bumpversion command.
cleanupCommand → const CommandDefinition
cleanupOptions → const List<OptionDefinition>
Options for cleanup command.
compilerCommand → const CommandDefinition
compilerOptions → const List<OptionDefinition>
Options for compiler command.
dcliCommand → const CommandDefinition
dcliOptions → const List<OptionDefinition>
Options for dcli command.
dependenciesCommand → const CommandDefinition
dependenciesOptions → const List<OptionDefinition>
Options for dependencies command.
executeCommand → const CommandDefinition
executeOptions → const List<OptionDefinition>
Options for execute command.
findProjectCommand → const CommandDefinition
findProjectOptions → const List<OptionDefinition>
Options for findproject command.
gitbranchCommand → const CommandDefinition
gitbranchOptions → const List<OptionDefinition>
Options for gitbranch command.
gitcheckoutCommand → const CommandDefinition
gitcheckoutOptions → const List<OptionDefinition>
Options for gitcheckout command.
gitcleanCommand → const CommandDefinition
gitcleanOptions → const List<OptionDefinition>
Options for gitclean command.
gitCommand → const CommandDefinition
gitcommitCommand → const CommandDefinition
gitcommitOptions → const List<OptionDefinition>
Options for gitcommit command.
gitcompareCommand → const CommandDefinition
gitcompareOptions → const List<OptionDefinition>
Options for gitcompare command.
gitmergeCommand → const CommandDefinition
gitmergeOptions → const List<OptionDefinition>
Options for gitmerge command.
gitOptions → const List<OptionDefinition>
Options for git passthrough command.
gitpruneCommand → const CommandDefinition
gitpruneOptions → const List<OptionDefinition>
Options for gitprune command.
gitpullCommand → const CommandDefinition
gitpullOptions → const List<OptionDefinition>
Options for gitpull command.
gitrebaseCommand → const CommandDefinition
gitrebaseOptions → const List<OptionDefinition>
Options for gitrebase command.
gitresetCommand → const CommandDefinition
gitresetOptions → const List<OptionDefinition>
Options for gitreset command.
gitsquashCommand → const CommandDefinition
gitsquashOptions → const List<OptionDefinition>
Options for gitsquash command.
gitstashCommand → const CommandDefinition
gitstashOptions → const List<OptionDefinition>
Options for gitstash command.
gitstatusCommand → const CommandDefinition
gitstatusOptions → const List<OptionDefinition>
Options for gitstatus command.
gitsyncCommand → const CommandDefinition
gitsyncOptions → const List<OptionDefinition>
Options for gitsync command.
gittagCommand → const CommandDefinition
gittagOptions → const List<OptionDefinition>
Options for gittag command.
gitunstashCommand → const CommandDefinition
gitunstashOptions → const List<OptionDefinition>
Options for gitunstash command.
pubgetallCommand → const CommandDefinition
pubgetCommand → const CommandDefinition
publisherCommand → const CommandDefinition
publisherOptions → const List<OptionDefinition>
Options for publisher command.
pubOptions → const List<OptionDefinition>
Options for pubget/pubupdate commands.
pubupdateallCommand → const CommandDefinition
pubupdateCommand → const CommandDefinition
runnerCommand → const CommandDefinition
runnerOptions → const List<OptionDefinition>
Options for runner command.
statusCommand → const CommandDefinition
statusOptions → const List<OptionDefinition>
Options for status command.
unreferencedCommand → const CommandDefinition
versionerCommand → const CommandDefinition
versionerOptions → const List<OptionDefinition>
Options for versioner command.

Properties

buildkitTool → ToolDefinition
Buildkit tool definition.
final

Functions

createBuildkitExecutors() → Map<String, CommandExecutor>
Create all buildkit executors.
executeWithStdin({required String command, required String stdinContent, String? workingDirectory, Map<String, String>? environment, bool dryRun = false, bool verbose = false}) → Future<bool>
Execute a command with content piped to its stdin.
extractScriptBody(String command) → String
Extract the script body from a multi-line shell command.
isMultiLineShellScript(String command) → bool
Check if a command string is a multi-line shell script.
isStdinCommand(String command) → bool
Check if a command is a stdin-piping command.
parseCommandArgs(String command) → List<String>
Parse a command string into parts, respecting quoted strings.
parseStdinCommand(String rawCommand) → ({String command, String stdinContent})?
Parse a stdin command into its command and stdin content parts.
pickProjectScopes({String prompt = 'What to include?', bool allowMultiple = true, PromptDriver? driver}) → List<ProjectScope>?
Quick scope picker for simpler use cases.