-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature: API metadata and Execute via LSP #48
Conversation
oldDir, _ := os.Getwd() | ||
utils.ChangeWorkingDir(apiDir) | ||
start := time.Now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are checking time http request only ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes the time difference between executing the API request
cmdexec/js.wasm.go
Outdated
@@ -30,7 +30,7 @@ func RunVMCode(jsCode string, vm interface{}) { | |||
|
|||
// GenerateChainCode takes in an HTTP response body and comes up with some JS code to define the "magic variable" result. | |||
func GenerateChainCode(httpRespBody string) string { | |||
fmt.Println("WW: Value of httpRespBody is",httpRespBody) | |||
// fmt.Println("WW: Value of httpRespBody is",httpRespBody) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
controller/controller.cli.go
Outdated
return HandleParsedFileHelper(parsedAPI, o, dir, vm) | ||
func HandleParsedFile(parsedAPI *gabs.Container, o *lama2cmd.Opts, dir string) (httpie.ExResponse, *lama2cmd.Opts, []outputmanager.ResponseTime, []outputmanager.StatusCode, []outputmanager.ContentSize, error) { | ||
vm := cmdexec.GetJSVm() | ||
return HandleParsedFileHelper(parsedAPI, o, dir, vm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run go fmt ./...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
binary_name: "l2" | ||
extra_files: LICENSE README.md | ||
ldflags: -X main.version=${{ github.ref_name }} | ||
build_flags: '-tags=cli' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add wasm build here its in release.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
codegen/codegen.wasm.go
Outdated
@@ -60,7 +60,7 @@ func generateConvertedSippet(targetLangLib string, parsedAPI *gabs.Container) st | |||
snippetArgs.SnippetCore = snippetcore | |||
fmt.Println("Snippet args:", snippetArgs) | |||
httpsnippetCode := PrepareHTTPSnippetGenerator(snippetArgs) | |||
//fmt.Println("httpsnippetCode:", httpsnippetCode) | |||
// fmt.Println("httpsnippetCode:", httpsnippetCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
What type of MR is this? (check all applicable)
Description
This merge request includes two major changes.
Important files to start review from
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
If documentation update is there, then run
make mkdocs
once PR is in acceptable state.[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this MR or how it makes you feel?
![alt text](URL of the GIF file)