autometrics-dev / am

Autometrics Companion CLI app
Apache License 2.0
16 stars 2 forks source link

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

Closed gagbo closed 11 months ago

gagbo commented 11 months ago

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