cmd_run library

Command runner

Classes

Dart2JsCmd
dart2js
DartAnalyzerCmd
dartanalyzer
DartCmd
Call dart executable [...]
DartDevcCmd
dartdevc
DartDevkCmd
DartDocCmd
dartdoc
DartFmtCmd
dartfmt command
FlutterCmd
build a flutter command
PbrCmd
ProcessCmd
PubCmd
pub
PubGlobalRunCmd
PubRunCmd
WebDevCmd

Constants

dartChannelBeta → const String
Beta channel.
'beta'
dartChannelDev → const String
Dev channel.
'dev'
dartChannelMaster → const String
Master channel.
'master'
dartChannelStable → const String
Stable channel.
'stable'

Properties

dartBinFileName String
read / write
dartChannel String
Current dart platform channel
read-only
dartExecutable String
Get dart vm either from executable or using the which command
read-only
dartSdkBinDirPath String
read-only
dartSdkDirPath String
read-only
dartVersion Version
Current dart platform version
read-only
flutterExecutablePath String
Resolved flutter path if found
read / write
isFlutterSupported bool
read-only
isFlutterSupportedSync bool
true if flutter is supported
read-only

Functions

argumentsToString(List<String> arguments) String
Convert multiple arguments to string than can be used in a terminal
argumentToString(String argument) String
Use to safely enclose an argument if needed [...]
dart2jsCmd(List<String> args) ProcessCmd
@Deprecated('Use Dart2JsCmd instead')
dartanalyzerCmd(List<String> args) ProcessCmd
@Deprecated('Use DartAnalyzerCmd instead')
dartCmd(List<String> arguments) ProcessCmd
@Deprecated('Use DartCmd instead')
dartdevcCmd(List<String> args) ProcessCmd
@Deprecated('Use DartDevcCmd instead')
dartdocCmd(List<String> args) ProcessCmd
@Deprecated('Use DartDocCmd instead')
dartfmtCmd(List<String> args) ProcessCmd
@Deprecated('Use DartFmtCmd instead')
devRun(String executable, List<String> arguments, {String workingDirectory, Map<String, String> environment, bool includeParentEnvironment = true, bool runInShell = false, Encoding stdoutEncoding = SYSTEM_ENCODING, Encoding stderrEncoding = SYSTEM_ENCODING, Stream<List<int>> stdin, StreamSink<List<int>> stdout, StreamSink<List<int>> stderr, bool connectStdout = false, bool connectStderr = false, bool connectStdin = false}) Future<ProcessResult>
devRunCmd(ProcessCmd cmd, {bool verbose, bool commandVerbose, Stream<List<int>> stdin, StreamSink<List<int>> stdout, StreamSink<List<int>> stderr}) Future<ProcessResult>
executableArgumentsToString(String executable, List<String> arguments) String
Convenient way to display a command
getDartBinVersion() Future<Version>
Parse flutter version
getFlutterBinChannel() Future<String>
Get flutter channel. (dev, beta, master, stable) [...]
getFlutterBinVersion() Future<Version>
Get flutter version. [...]
parsePlatformChannel(String text) String
Parse the text from Platform.version
processCmd(String executable, List<String> arguments, {String workingDirectory, Map<String, String> environment, bool includeParentEnvironment = true, bool runInShell, Encoding stdoutEncoding = systemEncoding, Encoding stderrEncoding = systemEncoding}) ProcessCmd
processCmdToDebugString(ProcessCmd cmd) String
processResultToDebugString(ProcessResult result) String
pubCmd(List<String> args) ProcessCmd
@Deprecated('Use PubCmd instead')
run(String executable, List<String> arguments, {String workingDirectory, Map<String, String> environment, bool includeParentEnvironment = true, bool runInShell, Encoding stdoutEncoding = systemEncoding, Encoding stderrEncoding = systemEncoding, Stream<List<int>> stdin, StreamSink<List<int>> stdout, StreamSink<List<int>> stderr, bool verbose, bool commandVerbose}) Future<ProcessResult>
if commmandVerbose or verbose is true, display the command. if verbose is true, stream stdout & stdin
runCmd(ProcessCmd cmd, {bool verbose, bool commandVerbose, Stream<List<int>> stdin, StreamSink<List<int>> stdout, StreamSink<List<int>> stderr}) Future<ProcessResult>
Command runner [...]