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

Add list option #20

Merged
merged 2 commits into from
Nov 10, 2024
Merged

Add list option #20

merged 2 commits into from
Nov 10, 2024

Conversation

piyoppi
Copy link
Owner

@piyoppi piyoppi commented Nov 9, 2024

削除されるコードの一覧を表示できるようにします。以下のように動作します。

>>> % ./target/debug/chiritori --filename=./samples/sample-code.js --delimiter-start="// --" --delimiter-end="-- //" --time-limited-tag-name="time-limited-code" --removal-marker-target-name="awesome-feature" --list

--------[ 1 ]--------
  _start
  // -- time-limited-code to="2020-12-31 23:59:59" -- //
    console.log('🧹This code will be removed after 2020-12-31T23:59:59.999Z');
  // -- /time-limited-code -- //
                               ‾end
--------[ 2 ]--------
  _start
  // -- time-limited-code to="2020-12-31 23:59:59" -- //
    console.log('🧹This code will be removed after 2020-12-31T23:59:59.999Z');
  // -- /time-limited-code -- //
                               ‾end
--------[ 3 ]--------
  _start
  // -- removal-marker name="awesome-feature" unwrap-block -- //
  if (isReleased) {
                  ‾end
--------[ 4 ]--------
_start
  }
  // -- /removal-marker -- //
                            ‾end%                                                                                                                                                                                                                                                                                                                                                                                                                                                           

@piyoppi piyoppi force-pushed the list-removal-codes branch 2 times, most recently from 0cc2385 to cb2e421 Compare November 10, 2024 03:31
@piyoppi piyoppi marked this pull request as ready for review November 10, 2024 05:43
@piyoppi piyoppi merged commit 91058e9 into main Nov 10, 2024
1 check passed
@piyoppi piyoppi deleted the list-removal-codes branch November 10, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant