FixCommand class
- Inheritance
-
- Implemented types
-
- Mixed-in types
-
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
-
arguments
→ List<Argument>
-
no setterinherited
-
category
→ String
-
The command's category.
no setteroverride
-
description
→ String
-
A description of this command, included in usage.
no setteroverride
-
globalResults
→ ArgResults?
-
The parsed global argument results.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hidden
→ bool
-
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 get
package"
).
no setterinherited
-
name
→ String
-
The name of this command.
no setteroverride
-
parent
→ Command<int>?
-
The command's parent command, if this is a subcommand.
no setterinherited
-
runner
→ CommandRunner<int>?
-
The command runner for this command.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
subcommands
→ Map<String, Command<int>>
-
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
-
usageWithoutDescription
→ String
-
no setterinherited
Methods
-
addArgument(String name, {String? help})
→ void
-
inherited
-
addSubcommand(Command<int> command)
→ void
-
Adds
Command
as a subcommand of this.
inherited
-
argument(String name)
→ String?
-
inherited
-
clearError()
→ void
-
Clear the current error line and return the caret.
inherited
-
clearInfo()
→ void
-
Clear the current info line and return the caret.
inherited
-
error(String message)
→ void
-
Append the current error line with
message
.
inherited
-
errorC(String message)
→ void
-
Rewrite the current error line with
message
.
inherited
-
errorCLn(String message)
→ void
-
Rewrite the current error line with
message
and start the next line.
inherited
-
errorLn(String message)
→ void
-
Append the current error line with
message
and start the next line.
inherited
-
getCommandUsage(Map<String, Command> commands, {bool isSubcommand = false, int? lineLength})
→ String
-
Returns a string representation of
commands
fit for use in a usage
string.
inherited
-
getPassword(String userName)
→ String
-
inherited
-
getPostgresHomeUrl(EnvConfig env)
→ String
-
inherited
-
getPostgresUrl(EnvConfig env)
→ String
-
inherited
-
info(String message)
→ void
-
Append the current info line with
message
.
inherited
-
infoC(String message)
→ void
-
Rewrite the current info line with
message
.
inherited
-
infoCLn(String message)
→ void
-
Rewrite the current info line with
message
and start the next line.
inherited
-
infoLn(String message)
→ void
-
Append the current info line with
message
and start the next line.
inherited
-
loadConfig()
→ Future<Config>
-
inherited
-
loadEnv([Config? config])
→ Future<EnvConfig?>
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onAfterPreparingError(String reason)
→ void
-
Occurs when
after_prepare.sql
script fails.
override
-
onBadIdentity(String identity)
→ void
-
Occurs when the migration
identity
has bad format.
override
-
onBeforePreparingError(String reason)
→ void
-
Occurs when
before_prepare.sql
script fails.
override
-
onDbMigrationNotFound(int id)
→ void
-
Occurs when the migration with the specified
id
doesn't exist in the
database.
override
-
onLocalMigrationNotFound(int id)
→ void
-
Occurs when there is no local migration with the specified
id
.
override
-
onMigrationsTableError(String tableName, String reason)
→ void
-
Occurs when the migrations table creation fails.
override
-
onPreparingStarted()
→ void
-
Occurs when the preparing process starts.
override
-
onPreparingSucceeded()
→ void
-
Occurs when the preparing process succeeds.
override
-
onUpdatingFailed(int id, String reason)
→ void
-
Occurs when updating of the migration fails due to the specified
reason
.
override
-
onUpdatingStarted(int id)
→ void
-
Occurs after successfull connection to the database and extract the
migration
id
from the identity.
override
-
onUpdatingSucceeded(int id)
→ void
-
Occurs when the migration is successfully updated in the database.
override
-
padRight(String source, int length)
→ String
-
Pads
source
to length
by adding spaces at the end.
inherited
-
printUsage()
→ void
-
Prints the usage information for this command.
inherited
-
run()
→ Future<int>
-
Runs this command.
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
usageException(String message)
→ Never
-
Throws a
UsageException
with message
.
inherited
-
wrapText(String text, {int? length, int? hangingIndent})
→ String
-
Wraps a block of text into lines no longer than
length
.
inherited
-
wrapTextAsLines(String text, {int start = 0, int? length})
→ List<String>
-
Wraps a block of text into lines no longer than
length
, starting at the
start
column, and returns the result as a list of strings.
inherited
-
wrapUsage(String text, {int? hangingIndent})
→ String
-
inherited