process_run.cmd_run library

Prefer using shell

Classes

Dart2JsCmd
dart2js
DartAnalyzerCmd
dartanalyzer
DartCmd
Call dart executable [...]
DartDevcCmd
dartdevc
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
Helper to run a process and connect the input/output for verbosity [...]
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
parsePlatformVersion(String text) Version
processCmdToDebugString(ProcessCmd cmd) String
processResultToDebugString(ProcessResult result) String
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>
Could become deprecated. [...]
runCmd(ProcessCmd cmd, {bool verbose, bool commandVerbose, Stream<List<int>> stdin, StreamSink<List<int>> stdout, StreamSink<List<int>> stderr}) Future<ProcessResult>
Command runner [...]
runExecutableArguments(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, void onProcess(Process process)}) Future<ProcessResult>
if commmandVerbose or verbose is true, display the command. if verbose is true, stream stdout & stdin [...]