Skip to content

[TM-3] Add commands to the executable

Roman Melnikov requested to merge rvem/tm3-add-commands-to-executable into master

Description

Problem: for now, we have parser, which can be launched only from REPL and morley executable, that does nothing useful

Solution: use ArgParser library to parse command line args. Implement morley executable so it is possible to run parse with optional flag --expand-macros. Also add stubs for typecheck and run commands with corresponding flags. All commands has -h help flag, e.g. morley run -h

Related issue(s)

https://issues.serokell.io/issue/TM-3

Checklist for your Merge Request

Related changes (conditional)

  • Tests

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports