summaryrefslogtreecommitdiff
path: root/tool/lib/output.rb
AgeCommit message (Collapse)Author
2024-04-19Make `Output.new` accepts keyword argumentsNobuyoshi Nakada
2023-08-23tool/lib/output.rb: Make `--color` option like GNU coreutilsNobuyoshi Nakada
2023-08-23tool/lib/output.rb: Add `--create-only` and `--overwrite` optionsNobuyoshi Nakada
2023-08-23tool/lib/output.rb: Add `--no-color` optionNobuyoshi Nakada
2022-12-13Skip calling f.read for `overwrite: true`-only casesTakashi Kokubun
We only need to set outpath for that case.
2022-12-13Make sure f.read is not called twiceTakashi Kokubun
--revision.h and --if-change are not used simultaneously, but they might be in the future. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-12-12Avoid overwriting revision.h when .git doesn't exist (#6915)Takashi Kokubun
* Avoid overwriting revision.h when .git doesn't exist * Overwrite revision.h if it's blank Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-11-13Try to overwrite the file in VPATH if possibleNobuyoshi Nakada
2022-11-02file2lastrev.rb: try to overwrite the found revision.h as beforeNobuyoshi Nakada
2022-11-02file2lastrev.rb: separate options for `Output` and `VPath`Nobuyoshi Nakada
So the `--srcdir` option in this file can override the same option in `VPath`.
2022-11-01output.rb: extract from generic_erb.rbNobuyoshi Nakada
- writing to a file or stdout - touching timestamp files - overwriting only if changed - colorizing