Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

READY : (willbe): Add "publish_diff" command and related functions #1230

Merged
merged 6 commits into from
Mar 21, 2024

Commits on Mar 21, 2024

  1. Add "publish_diff" command and related functions

    Created a new function called "publish_diff" in publish_diff.rs, registered it as a new command in mod.rs, and added related functions in package.rs. This "publish_diff" feature compares local and published versions of a specific package.
    Barsik-sus committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    2edeb1f View commit details
    Browse the repository at this point in the history
  2. Update publish_diff function and improve crate comparison logic

    The publish_diff function in publish_diff.rs module has been updated to enhance the package publication capability. The underlying crate comparison logic in package.rs module has also been optimized for better performance. Now, instead of listing the differences byte by byte, files are being compared which makes the DiffReport response more readable and concise.
    Barsik-sus committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7cacbb6 View commit details
    Browse the repository at this point in the history
  3. Sort diffs in package.rs

    In the entity package, a sort function has been incorporated into the for loop to sort the diffs. This sort function is sorted by key, assisted by a match pattern which covers all types of diffs including Modified, Same, Rem, and Add.
    Barsik-sus committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    20e72be View commit details
    Browse the repository at this point in the history
  4. Capture and handle stderr output in process tools

    The commit adds the capturing of the stderr output from a process in the process tools module. It includes error handling for cases when the output contains invalid UTF-8. If such an error is encountered, the function will now return an error report.
    Barsik-sus committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    53c5f9f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f98a985 View commit details
    Browse the repository at this point in the history
  6. Add feature to compare local and remote package versions

    The commit introduces a new functionality to compare local and remote package versions and generate a detailed report of changes. The comparison looks at each file, stating whether it's been added, removed, or modified. Now, users can see how their local package version is different from the remote one. Command line hints were updated to guide users through this feature.
    Barsik-sus committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d243fe1 View commit details
    Browse the repository at this point in the history