Skip to content

Add `--project-root` for missing commands

Motivation and Context

Serokell team reported that the command ligo info list-declaration was missing the CLI option --project-root.

Description

This MR adds -project-root CLI option to commands where it was missing.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Performance improvement (non-breaking change that improves performance)
  • None (change with no changelog)

Changelog

Before:

$ ligo info list-declarations src/test/projects/include_include/main.mligo 
File "src/test/projects/include_include/main.mligo", line 1, characters 0-41:
  1 | #import "include-include/index.mligo" "M"
  2 | #include "include-include/index.mligo"
File "include-include/index.mligo" not found.

After

$ ligo info list-declarations src/test/projects/include_include/main.mligo --project-root src/test/projects/include_include/
src/test/projects/include_include/main.mligo declarations:
main
hello

Checklist:

  • Changes follow the existing coding style (use dune @fmt to check).
  • Tests for the changes have been added (for bug fixes / feature).
  • Documentation has been updated.
  • Changelog description has been added (if appropriate).
  • Start titles under ## Changelog section with #### (if appropriate).
  • There is no image or uploaded file in changelog
  • Examples in changed behaviour have been added to the changelog (for breaking change / feature).

Merge request reports

Loading