CLI: Interactive mode

Start the interactive mode

$ pyastrx -i

Start the interactive mode with a specific folder

$ pyastrx -i -d src

Watch for changes

$ pyastrx -i -w

For specific files

$ pyastrx -f pyastrx.yaml  --spec yaml

or

$ pyastrx -i -f src/script_1.py -f src/script_2.py

Using an inline expression

Supose you want to look for all the defaults in your code base, do the following:

$ pyastrx  --expr //defaults --spec python

As a linter

The linter mode will run outside of the CLI and also will ignore any rule in the pyastrx.yaml file that has the use_in_linter: false flag.

$ pyastrx -l

More options

$ pyastrx --help