@ast-grep/cli
ast-grep(sg)
ast-grep(sg) is a CLI tool for code structural search, lint, and rewriting.
Please see ast-grep's official site and repository for more information.
Search and Rewrite code at large scale using precise AST pattern
ast-grep(sg) is a CLI tool for code structural search, lint, and rewriting.
Please see ast-grep's official site and repository for more information.
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Generated by auto-changelog
.
matches
, has
, inside
, follows
, precedes
) #1730
61f7177
85a7204
ec70763
5 January 2025
4ddb08f
1a8d782
713244f
30 December 2024
#1708
#1624
#804
#1691
#1688
5e3835a
8b735cf
9a7f3cc
17 December 2024
10f3e74
4558c48
0d477e9
17 December 2024
6ad3c7b
11bb8e4
17 December 2024
#1655
#1663
5a41f13
55e65f3
dcb7916
8 December 2024
91a2b46
526648b
ebfcbcd
2 December 2024
#1635
#1631
#1594
b87dad7
2b30f56
4fb2c52
26 November 2024
#1617
#1614
63c1c8d
2022f38
c569ec7
11 November 2024
#1574
#1585
#1575
#1570
105945e
ed05be4
cd25a62
893df63
b8803ce
30 October 2024
#1556
#1557
#1557
#1553
#1553
#1549
#1061
cfe472f
fb4ac07
c11fd89
20 October 2024
#1346
#1498
#1462
f83dbe9
61921f7
cf06185
6 October 2024
#1038
#1062
3d937cb
84ea621
b989f05
22 September 2024
70d33b5
683e398
a79f13f
14 September 2024
#1461
e0b437d
657bc4e
c55a404
8 September 2024
#1273
#1456
5fd4101
294e402
d46df6a
7 September 2024
#1436
c577761
4b0e594
def5b21
25 August 2024
#1405
#1419
9ecb02c
459d20a
e0bfaf2
18 August 2024
#1380
07e084a
835b06f
d7a3820
9 August 2024
#1143
236f4ab
43e74e7
8b660cf
7 August 2024
#1379
#1384
#1382
3b0be88
b760eb8
5ae03ae
5 August 2024
#1381
bca7e7b
c143464
170da4c
4 August 2024
--selector
in sg run #1378
a4cc793
d3ee100
93d684a
1 August 2024
#1366
#1365
#1347
78b1633
ff77914
58a3646
25 July 2024
#1300
#1343
#1344
c41ffa8
dfa38f2
76796e4
22 July 2024
#1309
416e28e
8c5dd00
61f6a14
18 July 2024
#1327
1e6b477
d358d45
b760b9b
14 July 2024
#1326
bde7f34
2d87fc5
13 July 2024
#1315
#1310
#1305
#1307
#1301
#1272
#1271
#1227
624aa70
07ef11f
4a0c177
26 June 2024
23 June 2024
#1218
#1246
#1243
#1241
#1239
4971ac2
c0e9a65
22f279c
22 June 2024
#1225
f219b43
27c918a
407d2a8
11 June 2024
#676
3ffd1d9
b4aebaf
079bc7d
4 June 2024
#1186
1e31253
7044811
d81c6c3
2 June 2024
#1170
c582c16
8ebb888
19e3baa
26 May 2024
#1155
#1164
#1161
#1159
#1160
#1158
0898b55
9beda6e
6817854
12 May 2024
#1140
5cb7052
70cef40
af20be8
12 May 2024
12 May 2024
tree-sitter-haskell
#1128
#1130
31428dd
188525d
3fe7780
8 May 2024
#1060
5b45bd7
ce9acba
3a67b6b
6 May 2024
#1125
#1118
#1106
d96efa9
b51cc95
77ea8bd
2 May 2024
#1087
8188473
5a754ef
2d6bae8
1 May 2024
#1072
1e8af4c
f086d10
cfe3529
24 April 2024
cbc6534
f7f24e1
59001eb
24 April 2024
#1064
#1070
#1068
#1069
#1066
#1067
#1065
#1065
#1059
eb4c47c
d56ad74
641d3b4
10 April 2024
8 April 2024
a70565e
fef3dfc
e0b5875
7 April 2024
#1021
f2ff77a
83394e9
cd79cda
27 March 2024
#771
f8132a4
203bd35
441a548
24 March 2024
#1019
24 March 2024
#1007
#1011
#1009
#1005
#1006
#446
da9a938
d81365a
41a058c
10 March 2024
#970
#968
#977
a14741d
4a397f4
23653c2
24 February 2024
67450cb
d98c062
86ec845
22 February 2024
#883
c4d7902
0e8b4f0
9636a1a
19 February 2024
#943
8a893e7
d18fd70
40d3fa0
14 February 2024
9b13d41
ff10e81
be230ca
31 January 2024
6a4a17c
30 January 2024
#868
#855
#862
#859
beb6f50
8a43a26
c5e0dc8
87bbf93
e629e0f
0f462a5
230ee9c
3a303c1
12 January 2024
#848
11 January 2024
07c5363
eeb2f98
54837df
5 January 2024
#639
13ad32b
26ecdf6
9ca9711
29 December 2023
#780
#805
93f8577
64e33a3
7bc3efe
17 December 2023
#786
#785
#791
#396
ef3d8ad
ed35c71
a2f22d8
15 December 2023
e1ab015
f6e4293
e1ab18a
11 December 2023
#765
dbac17d
f2d32be
990f09b
10 December 2023
#551
#751
496eb9d
57edde1
5b53ce0
2 December 2023
#739
#748
21e404c
941bffe
a16001c
30 November 2023
1a49c67
30 November 2023
#601
#736
#736
#601
55a43bd
1f26f62
fafd27c
20 November 2023
#698
775cee4
11cf0dd
ac78bc0
15 November 2023
#680
#713
2d39b9b
d64c09b
3e891c0
5 November 2023
#389
818bcc2
40028b0
254e0de
15 October 2023
#668
#620
#666
cargo xtask schema
for rule's JSON schema #665
73d6299
810c454
c9d611d
3 October 2023
b1bcd61
3 October 2023
#647
4b60f82
fe52289
f073ee3
29 September 2023
#638
fa50666
8f29f4f
710f76e
13 September 2023
convert
transform dc1e435
95a9ab8
b41cfc0
9 September 2023
#623
#444
#626
#553
2b30111
4860aa4
58fb152
17 August 2023
#585
9fcf34f
83608ac
3704f63
13 August 2023
#596
#595
6465200
d6d2c23
scan --rule-id <rule_id>…
a424121
4 August 2023
#575
#573
3be3764
c581c34
ff61688
30 July 2023
#561
#539
#546
#550
#547
a9bd29a
19dacf8
52f51e9
27 July 2023
#464
67037aa
374db3b
08a52d1
22 July 2023
#522
#519
#526
#442
#499
6ec490b
23a2684
492d5c8
16 July 2023
#517
#518
#516
e7faadb
5330149
05282aa
15 July 2023
--accept-all
and --update-snapshots
to --update-all
#513
#514
:
in CLI output #512
#502
d697aad
3da277f
sg test
command arg parsing 2735057
10 July 2023
#498
#498
e897d93
--no-stdin
to --stdin
1e26573
59dfcb7
9 July 2023
#497
#489
#349
#490
7525927
0eeb99d
10e676b
29 June 2023
#482
84492b9
429aa35
ad0e9a6
25 June 2023
#397
#397
#465
2e8f0ef
f0facff
aaae3a3
23 June 2023
19 June 2023
19 June 2023
#460
9315571
e0214f7
100f081
17 June 2023
11 June 2023
3c0276e
47feee1
5692c26
6 June 2023
6 June 2023
a522875
45558a5
b4c85b3
5 June 2023
#394
#416
79dc46b
99aa031
9c8cc05
29 May 2023
#415
#411
#374
67e8ec1
3e61667
3579862
25 May 2023
a48ba62
8e44f6a
78f751a
24 May 2023
24 May 2023
#405
#400
998691d
36d91e7
960fa8d
18 May 2023
#358
#358
ac38cb8
d9ebbe5
1d7d8ff
13 May 2023
#366
#367
54ba0a7
a1d579b
efab639
12 May 2023
12 May 2023
ast-grep
#361
#357
#347
f6014f9
07bcf7e
3757887
23 April 2023
23 April 2023
#217
#336
67062a6
5e15d8d
a3bef23
6 April 2023
#141
#297
#293
#292
a95c19e
b3fb9c9
2a75a0a
11 March 2023
#286
#266
750df87
8e5a181
4f41f46
28 February 2023
#275
703467e
3d305a6
a25bef1
28 February 2023
#276
#272
#269
#270
#265
#250
#255
#253
a6207ae
398c53d
37a303f
8 February 2023
#241
#238
#239
ff69866
136a75f
c503f0f
4 February 2023
#227
303ec8c
07735df
3f4e847
29 January 2023
#221
#218
#218
bf1e7e2
c264e32
ab2222e
27 January 2023
#205
#207
#205
753e972
279edeb
974a307
25 January 2023
24 January 2023
24 January 2023
#199
#199
#200
#197
#172
#192
#191
51f72db
f28f964
e580932
16 January 2023
#190
#188
#122
#185
0a40ed2
bfdde22
5b17e8b
15 January 2023
#182
#181
#181
0a638f1
a9510d2
875ef1e
14 January 2023
#165
#164
#162
#171
1a23b6a
8cc6765
adopt
method to safely create Node 6ea01ae
8 January 2023
#160
fa56cf1
fb58b15
1611af5
4 January 2023
#149
#147
#145
#146
#136
#137
#116
#134
#153
#152
#151
#135
#150
#128
#139
#131
#148
#121
#138
#125
#126
#3
9328cd7
17fbaf0
ea46263
18 December 2022
#115
#114
0c031c1
d6fc114
f33e39f
15 December 2022
#103
#104
#105
#106
#111
#110
#109
5ea05eb
get_matcher
instead of get_rule in verify 4b4ea8e
293a5c8
11 December 2022
7 December 2022
#102
#101
#100
#99
#97
#98
#95
#92
#91
74e5e7d
9c500af
c7dc0fe
5 November 2022
#88
#82
#83
#84
#86
#85
0ddb562
31 October 2022
#81
4c5321d
428dd62
020bb3c
27 October 2022
#77
#76
#74
#75
#73
#66
#70
#69
#67
#64
d2501ed
3802816
e45039e
3 October 2022
#63
#62
#55
#59
cc38e5a
8e94d1e
9f3754b
21 September 2022
6b2bfe0
84b0e59
78dbe99
19 September 2022
19 September 2022
#46
#47
#44
#45
#42
#41
#43
Python
to override expando_char
#40
#34
#35
#36
#37
#39
#38
#33
#32
ad09d42
e54b244
e8d4f0d
6 September 2022
#29
#28
#27
#18
#26
#24
#25
#20
#23
#16
#19
#14
#15
#10
#13
#12
#9
#1
#6
532f055
9a14a4b
ae6d5f1
23 August 2022
5 September 2022
#29
#28
#27
#18
#26
#24
#25
#20
#23
#16
#19
#14
#15
#10
#13
#12
#9
#1
#2
#6
532f055
94db982
041cc64