Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoasleep committed May 16, 2024
1 parent 986a8af commit 0e1a9be
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# yard → rbs-inline

Rewrite YARD type annotations in Your codes to rbs-inline.
Rewrite [YARD type annotations](https://yardoc.org/types.html) in your codes to [rbs-inline](https://github.com/soutaro/rbs-inline).

## Usage

Install this gem with the following command.

```console
bundle
gem install yard_to_rbs_inline
```

Then, run the following command to insert rbs-inline comments to your codes.

```console
# Print rewrited code to stdout.
./exe/yard-rbs-inline --dry-run your-file.rb
yard-rbs-inline --dry-run your-file.rb

# Overwrite files.
./exe/yard-rbs-inline your-file.rb
yard-rbs-inline your-file.rb
```

0 comments on commit 0e1a9be

Please sign in to comment.