Skip to content

CLI enhancements #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 5, 2023
Merged

CLI enhancements #94

merged 6 commits into from
Jun 5, 2023

Conversation

bladyjoker
Copy link
Contributor

@bladyjoker bladyjoker commented Jun 5, 2023

DONE

  • Positional arguments introduces
  • lbf receives a list of .lbf files that are eventually passed to lbg and these indicate WHICH codegen for
  • lbg receives a list of module name to codegen
  • Error reporting and UX workflows design&impl
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

@bladyjoker bladyjoker self-assigned this Jun 5, 2023
@bladyjoker bladyjoker added enhancement New feature or request frontend codegen labels Jun 5, 2023
@bladyjoker bladyjoker merged commit 2e63a33 into main Jun 5, 2023
@bladyjoker bladyjoker deleted the bladyjoker/coop-cli branch June 5, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant