Skip to content

A Command-Line Interface for explorer flutter/dart simplified ast.

License

Notifications You must be signed in to change notification settings

lsaudon/ast_explorer_cli

Repository files navigation

Ast explorer cli

Pub Version Pub Points License: MIT

A Command-Line Interface for explorer flutter/dart simplified ast.

The goal is to have the type, name, value, offset and end in the file.


Getting Started 🚀

If the CLI application is available on pub, activate globally via:

dart pub global activate ast_explorer_cli

Usage

# Check unused translations
ast_explorer tree <folder-of-app>

Running locally

dart pub global activate --source=path . && ast_explorer tree example/main.dart

Running Tests with coverage 🧪

To run all unit tests use the following command:

dart pub global activate coverage
dart test --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info

To view the generated coverage report you can use lcov.

# Generate Coverage Report
genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
open coverage/index.html

Build version

dart run build_runner build

Generated by the Very Good CLI 🤖