process_run 1.4.2
process_run: ^1.4.2 copied to clipboard
Process run helpers for Linux/Win/Mac and which like feature for finding executables.
1.4.2 #
- Add
ShellProcesses(shell.dart), any process of the machine by its pid on Linux, macOS and Windows:findByExecutable(the running processes of an executable file),descendantsOf(the children of a process, their children...),isRunningandkill(sigterm, then sigkill after a timeout, with the descendants whentreeis true) - Behavior change:
Shell.kill()without a signal (its signal is now nullable,kill([ProcessSignal? signal])) kills the command and all its descendants,sigtermfirst thensigkillfor the ones still running after 5 seconds (in the background); on Windows the whole tree at once (taskkill /t /f). It sentsigtermto the command only, its children kept running. An explicit signal keeps the previous behavior (kill(ProcessSignal.sigterm)signals the command only) Shell.kill(ProcessSignal.sigkill)kills all the descendants of the running command on Linux and macOS (pkill -Psent sigterm to its direct children only: grandchildren, such as the browser offlutter test, kept running)
1.4.1+1 #
- Reading an env file is tolerant for values written as is before 1.4.0: an
invalid value such as
a: bno longer makes the whole file unreadable, and an unquoted number, boolean or empty value keeps its text (007,1.50, an empty value used to read back as7,1.5andnull) Shell.killwrites itskilling ...line only when the shell shows its commands (verboseorcommandVerbose), to the shell'sstderrwhen one is given (it always went to the process stderr)- Add
bin/ds.dart(thedsexecutable now points to it) so thatdart run process_run:dsworks,process_run:shellstill does; the docs mentiondart install process_run
1.4.0 #
- Behavior change: a shell created with
includeParentEnvironment: falsekeeps its environment aftercd,pushd,shellVarOverrideandpipe(the parent environment came back) - Fix
pipeandShellProcessResults.shell(stack overflow), the piped command now gets the output as its input, ended - Fix
onProcessignored byrunExecutableArguments(top-level andShell) - Fix
userLoadEnvanduserLoadEnvFilelosing the aliases,userLoadEnv(aliases:)is now applied - Fix
runExecutableArgumentsSync(throwOnError: true)not throwing - Fix aliases applied twice in
runSync,runExecutableArgumentsSyncandrunCommandSync ds env var setandds env alias setquote the value when needed so that a value such asa: bno longer corrupts the env file; a var that cannot be set in the local file is no longer written- Fix
ShellEnvironment ==(always false) runCmdusesProcessCmd.mode,devRunCmduses itsstdoutpopdand the comments use the shellstdoutds env --infoandds env alias delete --verbosedisplay the aliases
1.3.7 #
- Add
DartToolPathsand thepubCachePath,pubCacheBinPath,dartDataHomePath,dartInstallPathanddartInstallBinPathgetters: wheredart pub global activateanddart installput their files on Linux, macOS and Windows, with thePUB_CACHEandDART_DATA_HOMEoverrides
1.3.6 #
- Add
process-run-environment,process-run-shellandprocess-run-toolsagent skills inskills/, installable withdart run skills@ get
1.3.5 #
- Support nested aliases (an alias can refer to another alias) when resolving
the executable of a command, in
Shell.runandds run <alias> <arguments> - Linux/macOS only: fallback on the user shell aliases when a command cannot
be resolved, so that
ds run llworks withalias ll='ls -alF'defined in~/.bashrc,~/.zshrc... The shell is read from theSHELLenvironment variable (bash,zsh,sh,dash,ashandkshvariants are supported), an unsupported shell (fish...) means no fallback. Can be turned off usinguserShellAliasEnabled ds run --infoalso dumps the aliases
1.3.4+1 #
- Requires dart 3.12
- Fixes
ShellBinCommand.verboseflag resolution
1.3.3+1 #
- Add
ShellCommand,ShellCommandRunOptionandShell.runCommand
1.3.2 #
- Add
ShellProcessResultandShellProcessResultsfor proper output decoding - Add experiment
pipefeature to use onShell.run
1.3.1+1 #
- Add
commandinfo toShellExceptionandtoDebugString()helper
1.3.0 #
- ShellContext export
- Requires dart 3.10
1.2.4 #
- Allow running in a zoned environment context.
1.2.3 #
- Requires dart 3.7
1.2.2+1 #
- Special kill behavior on linux, mac and windows when using sigkill (kills all children too)
- Export
ShellOnProcessCallback
1.2.1+1 #
- Add
ShellLinesController.binaryStreamto allow processing binary data and allow using it for stdin. - Fix
--userflag handling indsexecutable.
1.2.0+3 #
- Export ShellBinCommand
- requires dart 3.5
1.1.0 #
- Remove deprecated methods
1.0.0+3 #
- add
ShellStdioandshellStdioLinesGrouperto allow grouping stdout and stderr lines by zones.
0.14.2 #
- add
noStdoutResultandnoStderrResulttoShellOptionsandrunExecutableArgumentsto avoid out of memory for very long output
0.14.1+3 #
- add
runSyncandrunExecutableArgumentsSyncto global space and toShell
0.14.0+1 #
- No longer replace
\by\\before splitting arguments - Fix backslash handling when splitting a command with a different behavior on Windows and Mac/Linux (backslash is not an escape character on Windows)
0.13.3+1 #
- Fix finding
flutteron windows in unit tests - Remove
charcodedependency. - Propage added errors in
ShellLinesController
0.13.2 #
- Export
stringToArgumentsinshell.dart
0.13.1 #
- Dart 3 only
0.13.0 #
- Dart 3 support
0.12.5+3 #
- Fix
cloneinShellMixin.
0.12.5 #
- requires dart sdk 2.18
- strict-casts support
0.12.3+2 #
- Cache shellEnvironment when set
- dart 2.14 lints
- Resolve relative executable according to working directory
0.12.1+1 #
- Add
ProcessRunProcessResultExthelper. - Add
onProcesscallback for Shell run actions. - Don't flush stdout/stderr in Windows release mode as it hangs
0.12.0+1 #
nnbdsupport
0.11.2+8 #
- Add
ShellEnvironmentutility, allowing adding vars, path and alias - Add
ds(shell binary) executable for manipulating environment used inShellfrom the command line - Fix verbose non ASCII character output
0.11.1 #
- Add
ShellLinesControllerutility - Export
whichfromshelland utilities. - Test on all platforms using GitHub actions.
0.11.0+2 #
- More stuff in process_run: run, outLines and errLines on List
0.10.12+3 #
- Handle dart/pub binary path resolution next to flutter for SDK 2.9+
- Add
Shell.runExecutableArguments - Fix:
runInShellno longer forced to true on Windows for executable with.exeextension
0.10.10 #
- Add
prompt,promptTerminate,promptConfirmtoshell.dart. ExportsharedStdInfrom packageio
0.10.9+2 #
- Add
dartChannel
0.10.8 #
- Add
Shell.pathproperty
0.10.7 #
- Add
getDartBinVersion,getFlutterBinVersion,getFlutterBinChannelandgetPackageVersion - User pedantic 1.9
- Find flutter bin compared to running dart sdk
0.10.4+1 #
- Android support
- Fix shell run commands un multiple lines
0.10.3 #
- now the userEnvironment is used by default in shell. Use platformEnvironment for the raw environment.
- add shell run command to run a command with user loaded vars and paths
- add
userLoadConfigFileto load any.yamlfile - add
getFlutterVersion
0.10.2 #
- add
shellbinary allowing editing the environment file on MacOS/Windows and Linux
0.10.1 #
- add
userPathsanduserEnvironmentaccess and allow overriding for finding executable and passing env variable to callee
0.10.0 #
- feat: add Shell class and features
- try to resolve single command everywhere
0.9.0 #
- fix: which now returns the full path on linux
0.8.0 #
- Deprecate old commands helper dartCmd, pubCmd... to use constructors instead (DartCmd, PubCmd...)
- Add webdev and pbr command
0.7.0 #
- add flutter command support
- add Windows support
- add which utility
0.6.0 #
- dart2 support
0.5.6 #
- supports
implicit-casts: false
0.5.5 #
- when using io.stdout and io.stderr, flush them when running a command
0.5.4 #
- Fix handling of stdin
0.5.2 #
- fix dart2js to have a libraryRoot argument
- add dartdevc
0.5.1 #
- fix devRun
0.5.0 #
- deprecated connectStdout and connectStrerr in ProcessCmd
- add stdin, stdout, verbose and commandVerbose parameter for run
0.4.0 #
- add stdin and deprecated buggy connectStdin
0.3.3 #
- add argumentToString to handle basic quote or double quote
0.3.2 #
- fix dartdoc to add --packages argument along with the snapshot
0.3.0 #
- Add runCmd (cmd_run library)
0.2.0 #
- Add ProcessCmd
0.1.0 #
- Initial version, run and dartbin utilities