LanguageCommand class
A single language-specific command, loaded from the language catalog.
Either exec (a directly invoked executable) or tool (a binary run via
the project's package manager, e.g. npx/pnpm exec) is set.
Constructors
-
LanguageCommand({required String label, required List<
String> args, String? exec, String? tool, bool runInShell = false}) -
Constructor.
const
-
LanguageCommand.fromMap(Map<
String, dynamic> map) -
Builds a LanguageCommand from its JSON representation.
factory
Properties
-
args
→ List<
String> -
The arguments passed to exec / tool.
final
- exec → String?
-
The directly invoked executable, e.g.
dartornpm. Null when tool is set.final - hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
A short human readable label, used for progress output.
final
- runInShell → bool
-
Whether the command must run through a shell (required for Node tooling
on Windows, which ships as
.cmd/.ps1launchers).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tool → String?
-
A package-manager-provided binary, e.g.
tscoreslint. Null when exec is set.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withValues(
Map< String, String> values) → LanguageCommand -
Returns a copy of this command with every
{key}placeholder in label, exec, tool and args replaced by the matching value invalues.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited