QueueInstallCommand class

dox queue:install [--driver=database|redis|sync]. dox add queue runs it. It sets up the queue in an app: the config, the provider, bin/queue.dart, a sample job and the REDIS_* keys of the redis driver. The database driver (the default) also adds dox_queue_database and the migration of the jobs tables. It never overwrites a file, so it is safe to run twice.

Constructors

QueueInstallCommand({Directory? root, ProcessRunner? runner})
root is the app folder (the current folder by default). runner runs dart, tests pass a fake one.

Properties

description → String
one line for dox help
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
the name after dox, like queue:table
no setter
root → Directory?
final
runner → ProcessRunner?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
usage → String
how to call it, like make:report <name>. Shown by dox help. The default is name.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<String> args) → Future<void>
run the command. args are the words after the name.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

queueConfig(String app, String driver) → String
lib/config/queue.dart for driver
queueEntry(String app) → String
bin/queue.dart, the same as the app template
queueProvider(String app, String driver) → String
lib/providers/queue_provider.dart for driver

Constants

drivers → const List<String>
migration → const String
the migration of the jobs tables, the same as dox queue:table (dox_queue_database). It is a copy: dox_queue cannot depend on dox_queue_database.
sampleJob → const String
the sample job of the app template