Skip to content

[am list] Add subcommand to instrument source code - #152

Merged
gagbo merged 3 commits into
mainfrom
patch_codebases
Nov 2, 2023
Merged

gagbo merged 3 commits into
mainfrom
patch_codebases

Conversation

@gagbo

@gagbo gagbo commented Oct 24, 2023 •

Copy link
Copy Markdown
Contributor

Description

This PR adds the am instrument subcommand. It leverages tree-sitter to edit files in a project and add instrumentation annotations in a codebase.

In order to make this work, issues in Typescript queries were detected so the PR also fixes ts queries. Also, a slight refactoring (DRY) was applied on the codebase in general to reuse the project tree-walking code everywhere

Checklist

  • Changelog updated

@gagbo
gagbo force-pushed the patch_codebases branch 4 times, most recently from aaab44c to ec79a06 Compare October 30, 2023 18:41
@gagbo
gagbo marked this pull request as ready for review October 30, 2023 18:42
@gagbo
gagbo requested a review from a team as a code owner October 30, 2023 18:42
@gagbo gagbo changed the title [am list] Add trait to instrument source code [am list] Add subcommand to instrument source code Oct 31, 2023
Comment thread am/src/commands.rs Resolved
Comment thread am/src/commands/instrument.rs Resolved
Comment thread am/src/commands/instrument.rs Resolved
Comment thread am_list/src/lib.rs Resolved
Comment thread am_list/src/lib.rs Resolved
Parallelize function listing and instrumentation

Add prompt when we can detect potentially hard to revert effects
@gagbo
gagbo requested a review from mellowagain November 2, 2023 08:17
@gagbo
gagbo merged commit 0e657c9 into main Nov 2, 2023
@gagbo
gagbo deleted the patch_codebases branch November 2, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants