rome/tools

📎 New `--changed` argument

オヌプン

#4,453 opened on 2023/05/09

 (2 件のコメント) (2 件のリアクション) (0 人の担圓者)Rust (647 件のフォヌク)batch import
A-CLIA-ProjectHelp wantedI-Normal

Repository metrics

Stars
 (23,438 個のスタヌ)
PR merge metrics
 (30d に merged PR はありたせん)

説明

Description

Rome now has support for VCS, which means that we can unlock new features that make the life of developers easier!

One of these features is the addition of a new argument called --changed to the CLI. When we pass this argument, Rome will execute check/format/etc. only to those files that were changed.

Technical details

I am still determining the implementation of this argument. There are two alternatives:

  1. execute the command via Command, we pass the proper arguments to the git program, and we read the output that was generated. Although I don't know yet what's the correct command/arguments to get an accurate output
  2. Use the crate git2. While this crate is phenomenal, its size is not small (207kb)

What do you guys think?

コントリビュヌタヌガむド