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 1 year ago

gagbo commented 1 year 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