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

feat: add ast-grep/ast-grep #18120

Merged
merged 2 commits into from Dec 12, 2023

Conversation

CrystalMethod
Copy link
Contributor

ast-grep/ast-grep: A CLI tool for code structural search, lint and rewriting. Written in Rust

$ aqua g -i ast-grep/ast-grep

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

$ sg --help
Search and Rewrite code at large scale using AST pattern.
                    __
        ____ ______/ /_      ____ _________  ____
       / __ `/ ___/ __/_____/ __ `/ ___/ _ \/ __ \
      / /_/ (__  ) /_/_____/ /_/ / /  /  __/ /_/ /
      \__,_/____/\__/      \__, /_/   \___/ .___/
                          /____/         /_/


Usage: sg <COMMAND>

Commands:
  run          Run one time search or rewrite in command line. (default command)
  scan         Scan and rewrite code by configuration
  test         Test ast-grep rules
  new          Create new ast-grep project or items like rules/tests
  lsp          Start language server
  completions  Generate shell completion script
  docs         Generate rule docs for current configuration. (Not Implemented Yet)
  help         Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

[ast-grep/ast-grep](https://github.com/ast-grep/ast-grep): A CLI tool for code structural search, lint and rewriting. Written in Rust
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Dec 12, 2023
@suzuki-shunsuke suzuki-shunsuke added this to the v4.102.0 milestone Dec 12, 2023
@suzuki-shunsuke
Copy link
Member

Thank you!

Comment on lines 25 to 27
files:
- name: sg
src: sg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
files:
- name: sg
src: sg
files:
- name: sg

If src is same with name, we can omit src.

@suzuki-shunsuke suzuki-shunsuke merged commit 88cbf59 into aquaproj:main Dec 12, 2023
16 checks passed
@suzuki-shunsuke
Copy link
Member

@CrystalMethod CrystalMethod deleted the feat/ast-grep/ast-grep branch December 18, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants