mlabs-haskell / lambda-buffers

LambdaBuffers toolkit for sharing types and their semantics between different languages
https://mlabs-haskell.github.io/lambda-buffers/
Apache License 2.0
29 stars 0 forks source link

CLI enhancements #94

Closed bladyjoker closed 1 year ago

bladyjoker commented 1 year ago

DONE

Usage: lbf build [-i|--import-path FILEPATH] [-c|--compiler FILEPATH] 
                 [-g|--gen FILEPATH] --gen-dir FILEPATH [--gen-opt ARGUMENT] 
                 [-d|--debug] [-w|--work-dir FILEPATH] [.lbf SCHEMA]...

  Build LambdaBuffers .lbf schemas

Available options:
  -i,--import-path FILEPATH
                           Directory to look for LambdaBuffer Module source
                           files (.lbf)
  -c,--compiler FILEPATH   LambdaBuffers Compiler location (if none is set the
                           LB_COMPILER environment variable is used)
  -g,--gen FILEPATH        LambdaBuffers Codegen location (if none is set the
                           LB_CODEGEN environment variable is used)
  --gen-dir FILEPATH       Directory where the Codegen will store any output
                           produced from the LambdaBuffers schema
  --gen-opt ARGUMENT       Additional options to provide to the Codegen module
  -d,--debug               Run in debug mode
  -w,--work-dir FILEPATH   Working directory used to communicate with the
                           Compiler and Codegen components
  [.lbf SCHEMA]...         .lbf schemas to build
  -h,--help                Show this help text
$ lbg gen-haskell
Usage: lbg gen-haskell [-c|--config FILEPATH] (-i|--input FILEPATH) 
                       [-o|--output FILEPATH] (-g|--gen-dir FILEPATH) 
                       [-d|--debug] [module name]...

  Generate Haskell code from a compiled LambdaBuffers schema

Available options:
  -c,--config FILEPATH     Configuration file for the Haskell codegen module
  -i,--input FILEPATH      Compiled LambdaBuffers schema to generate code for
  -o,--output FILEPATH     Codegen output that can be used to inspect Codegen
                           errors
  -g,--gen-dir FILEPATH    Directory to print generation output to
  -d,--debug               Run in debug mode
  [module name]...         Modules to generate code for
  -h,--help                Show this help text