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

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

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

gagbo
Copy link
Member

@gagbo gagbo commented Oct 24, 2023

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
am/src/commands.rs Show resolved Hide resolved
am/src/commands/instrument.rs Show resolved Hide resolved
am/src/commands/instrument.rs Show resolved Hide resolved
am_list/src/lib.rs Show resolved Hide resolved
am_list/src/lib.rs Outdated Show resolved Hide resolved
Parallelize function listing and instrumentation

Add prompt when we can detect potentially hard to revert effects
@gagbo gagbo merged commit 0e657c9 into main Nov 2, 2023
1 check passed
@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