StopCommand class

SIGTERMs the recorded flutter run PID + the FIFO stdin holder PID, deletes the FIFO + state.json. When chromePid is present in state, also delivers SIGTERM (with SIGKILL escalation) to that Chrome process and deletes the tmpProfileDir. Idempotent (silent if state.json absent).

Inheritance

Constructors

StopCommand()

Properties

boot CommandBoot
What boot context the dispatcher must establish before calling handle. See CommandBoot for the V1 taxonomy (none, connected).
no setteroverride
description String
One-line description (rendered in artisan list next to name).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
Dispatch key. Colons (:) act as namespace prefixes for artisan list grouping (e.g. dusk:snap groups under dusk).
no setteroverride
parsedSignature CommandSignature?
Lazy-parsed signature. Cached for the lifetime of the instance.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature String?
Optional Laravel-style signature DSL. When set, name derives from it and configure auto-registers the declared options/flags.
no setterinherited

Methods

configure(ArgParser parser) → void
Auto-applies signature to the parser when set. Override to register extra ArgParser features (mandatory options, aliases, custom value validators). When you override, call super.configure(parser) first if you also use the signature DSL.
inherited
handle(ArtisanContext ctx) Future<int>
Execute the command. Returns the process exit code.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

stopGracePeriod Duration
Grace period between SIGTERM and the liveness probe. Defaults to 2 s.
getter/setter pair
stopIsAlive bool Function(int)
Returns true when the process pid is still alive.
getter/setter pair
stopKillFunction bool Function(int, ProcessSignal)
Sends a signal to the given PID. Defaults to Process.killPid.
getter/setter pair

Static Methods

defaultIsAlive(int pid) bool
Default liveness probe: exits 0 when the process exists on POSIX.