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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkgs/ast-grep/ast-grep/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
packages:
- name: ast-grep/ast-grep@0.14.4
- name: ast-grep/ast-grep
version: 0.14.0
- name: ast-grep/ast-grep
version: 0.13.2
- name: ast-grep/ast-grep
version: 0.6.6
59 changes: 59 additions & 0 deletions pkgs/ast-grep/ast-grep/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
packages:
- type: github_release
repo_owner: ast-grep
repo_name: ast-grep
description: A CLI tool for code structural search, lint and rewriting. Written in Rust
version_constraint: "false"
version_overrides:
- version_constraint: semver("<= 0.6.6")
asset: sg-{{.Arch}}-{{.OS}}.{{.Format}}
format: zip
windows_arm_emulation: true
overrides:
- goos: darwin
replacements:
arm64: aarch64
replacements:
amd64: x86_64
darwin: apple-darwin
linux: unknown-linux-gnu
windows: pc-windows-msvc
supported_envs:
- darwin
- windows
- amd64
files:
- name: sg
- version_constraint: semver("<= 0.13.2")
asset: sg-{{.Arch}}-{{.OS}}.{{.Format}}
format: zip
replacements:
amd64: x86_64
arm64: aarch64
darwin: apple-darwin
linux: unknown-linux-gnu
windows: pc-windows-msvc
files:
- name: sg
- version_constraint: Version == "0.14.0"
asset: sg-{{.Arch}}-{{.OS}}.{{.Format}}
format: zip
replacements:
amd64: x86_64
arm64: aarch64
linux: unknown-linux-gnu
supported_envs:
- linux
files:
- name: sg
- version_constraint: "true"
asset: sg-{{.Arch}}-{{.OS}}.{{.Format}}
format: zip
replacements:
amd64: x86_64
arm64: aarch64
darwin: apple-darwin
linux: unknown-linux-gnu
windows: pc-windows-msvc
files:
- name: sg
58 changes: 58 additions & 0 deletions registry.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.