Skip to content
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

make cli great again #112

Closed
rkdud007 opened this issue Jul 15, 2024 · 1 comment
Closed

make cli great again #112

rkdud007 opened this issue Jul 15, 2024 · 1 comment

Comments

@rkdud007
Copy link
Member

Note: this is bit tricky problem love to hear more feedback

trying to find sweet spot of "try not to introduce breaking change too much" vs "have more intuitive cli with v2 <> v1 generalization".

And also try to remove unnecessary serde/deserde and commands

Background

This is the cases where we use hdp most often:

  1. hdp-test : pass 1 raw task-> preprocess
  2. hdp-server(onchain) : pass N encoded tasks -> preprocess -> process
  3. later : pass N tasks input.json -> process

we will have 4 command

hdp encode --request-query {FILE_PATH} --encoded-query {FILE_PATH}
hdp decode --encoded-query {FILE_PATH}  --request-query {FILE_PATH}

and run command will support 2 type, each can be either by calling encoded request or raw request

hdp run-datalake --encoded-datalakes {BYTES} --encoded-tasks {BYTES} ... some etc arguments  
hdp run-module  --encoded-modules {BYTES} ... some etc arguments 

and raw server request

hdp run --request-query {FILE_PATH}
@rkdud007
Copy link
Member Author

close with #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant