-
Notifications
You must be signed in to change notification settings - Fork 368
Support Postman CLI for Code generation #800
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
base: develop
Are you sure you want to change the base?
Support Postman CLI for Code generation #800
Conversation
…nd enhance functionality. The package is now named "@postman/codegen-postman-cli" with version 0.1.0. Updated descriptions and options in README and code to reflect Postman CLI usage. Added new options for request handling and improved error messages.
codegens/postman-cli/lib/index.js
Outdated
| var indent, trim, headersData, body, redirect, timeout, multiLine, | ||
| format, snippet, quiet, url, quoteType, maxRedirects, followOriginalHttpMethod; | ||
|
|
||
| redirect = options.followRedirect; |
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 can ask AI to cross check options
- list all options
- cross check with usage here
- track what were not used
shamasis
left a comment
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.
This is isolated enough to not be catastrophic,
codegens/postman-cli/lib/index.js
Outdated
| var self; | ||
|
|
||
| self = module.exports = { | ||
| convert: function (request, options, callback) { |
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.
might be worth breaking down this function into smaller ones with each function handling one aspect (headers, auth, body, proxy) and we can just chain them together. might make it easier to add a new aspect tomrrow.
Support postman CLI for code generation.