Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feature_request(option): --dry-run mode #82

@Kristinita

Description

@Kristinita

1. Summary

It would be nice if Autotyping will have the --dry-run mode.

2. Example of desired behavior

  1. Autotyping will have the command-line argument named like --diff or --dry-run or --preview. If this argument enabled, Autotyping will output to console proposed changes instead of modifying files in-place.
  2. If Autotyping proposes one or more changes, the command exits with non-zero exit code. This is helpful when using Autotyping in Continuous Integration or in pre-commit hooks.

3. Justification of the need of the feature

  1. Checking behavior. Modifying results may be strange or non-expected for users especially if they use such an option as --aggressive. Previewing is useful for understanding how a program works.
  2. Detecting problems. 100% safe file modifiers isn’t existing. I prefer to preview a behavior of all programs (especially new for me) that modify my sources to prevent possible problems.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions