marine icon indicating copy to clipboard operation
marine copied to clipboard

Update Rust crate cmd_lib to v1

Open renovate[bot] opened this issue 1 year ago • 0 comments

Mend Renovate

This PR contains the following updates:

Package Type Update Change
cmd_lib dependencies major 0.7.8 -> 1.3.0

Release Notes

rust-shell-script/rust_cmd_lib

v1.0.10

Compare Source

Major Changes

  • update CmdStdio APIs, use stdin(), stdout(), stderr() to get Reader/Writer for builtin/custom commands
  • process internal: move most of the runtime information from Cmds to Cmd.
  • freeze APIs and update docs for 1.0 release
  • enable logging support
  • log error messages when running command fails
  • capture all messages on stderr into logs
  • fix builtin command stderr redirection
  • report cd command error
  • try to capture all stdout/stderr messages if they are redirected to file
  • support "|&"
  • removed "log" crate dependency for end users
  • add checks for multiple redirections for the same input/output #​21
  • spawn a separate thread for builtin/custom pipe-out threads to solve the pipe-full issue #​22

v1.0.9

Compare Source

v1.0.6

Compare Source

v1.0.5

Compare Source

v1.0.4

Compare Source

v1.0.3

Compare Source

v1.0.2

Compare Source

v1.0.1

Compare Source

v0.15.0

Compare Source

v0.14.6

Compare Source

Major changes

  • Use cmd_die!() to replace die!() macro, which is more consistent for string interpolation within this library
  • Add cmd_info!() macro to print messages conveniently
  • Add basic redirection support for builtin/custom commands
  • Update command registration API
  • Change buf from String to Vec in CmdStdio struct
  • Fix parsing escape characters
  • Refactor lexer code to move iteration related information into a separate TokenStreamPeekable struct
  • Support io input for builtin/custom commands, and add builtin cat as an example
  • Support null command, like: run_cmd!(>/tmp/output)
  • Print number literals without converting to actual value: run_cmd!(echo 0xff) will print "0xff" instead of "255".
  • Make sure the children processes always being waited, even when the last command fails
  • Don't panic process when there is any IO errors

v0.14.5

Compare Source

v0.14.4

Compare Source

v0.14.3

Compare Source

v0.14.2

Compare Source

v0.14.1

Compare Source

v0.14.0

Compare Source

v0.12.6

Compare Source

Changes

  • Refactored lexer code, to do forward scanning if possible
  • Fixed run_fun! bug to make sure redirection always work
  • Added cmd_info!() macro to print messages conveniently
  • Make unit tests cases more robust

v0.12.5

Compare Source

Changes

  • fixed command redirections, support &>> format and fail a bunch of invalid formats

v0.12.4

Compare Source

Changes

  • Better debugging support
  • Show more details about running commands

v0.12.3

Changes

  • Fixed cd bugs to make sure later commands always use the previous settings in the same command group
  • Update dd_test example to use structopt and rayon crates to simply the code
  • Clean up ownership in process APIs, and try not to take any ownership
  • Change CMD_MAP back to lazy_static! to make sure it works in multi-thread environment
  • Add github ci workflow

v0.12.0

Major Changes

  • No more runtime lexing and arguments parsing, do lexing and parsing completely at compile time
  • No more runtime package dependency except std
  • No more unsafe function calls
  • Removed APIs which could lead to exploitable code

API Changes

Tests and Examples

Misc

  • A bunch of code clean up, including eliminating duplicated code and unnecessary APIs

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar Aug 04 '22 19:08 renovate[bot]