From fc84639b09126987da8f133dd8080d48c4989b0b Mon Sep 17 00:00:00 2001 From: piyoppi Date: Sat, 23 Nov 2024 22:56:07 +0900 Subject: [PATCH] Release v1.3.0 --- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 22 ++++++++++++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3992b78..a32aa71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Chiritori Changelog +## 1.3.0 + +### Features + +Add `--removal-marker-target-config` option. See [README](https://github.com/piyoppi/chiritori/blob/v1.3.0/README.md#removal-marker). + ## 1.2.1 ### Bug fixes diff --git a/Cargo.lock b/Cargo.lock index c759409..04ade80 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,7 +111,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chiritori" -version = "1.2.1" +version = "1.3.0" dependencies = [ "atty", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 5ca67bf..f725784 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chiritori" -version = "1.2.1" +version = "1.3.0" description = "A tool for removing time-limited source code" repository = "https://github.com/piyoppi/chiritori" license = "MIT" diff --git a/README.md b/README.md index b8d5d2e..205fb59 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ Options: The tag name for removal-marker [default: removal-marker] --removal-marker-target-name Name of removal-marker to be removed [default: vec![]] + --removal-marker-target-config + Config file specifying the name of the removal-marker to be removed. The content of the config file is indicated by the name of the removal target, separated by a newline -l, --list List source code to be removed --list-all @@ -174,6 +176,26 @@ If the command line argument `--removal-marker-target-name` is specified, tags w chiritori --filename=./samples/sample-code.js --removal-marker-target-name="feature1" ``` +Removal targets can also be specified using a configuration file. + +``` +chiritori --filename=./samples/sample-code.js --removal-marker-target-config=./config.txt +``` + +The configuration file specifies the target for each new line. +If the contents of config.txt are as follows. + +``` +feature1 +feature2 +``` + +It is equivalent to the following commands. + +``` +chiritori --filename=./samples/sample-code.js --removal-marker-target-name="feature1" --removal-marker-target-name="feature2" +``` + #### Attributes | Name | Detail | Example |