Open yashi12 opened 3 years ago
@yashi12 this is a great idea, can you elaborate on the syntax of the command
or some dummy interaction. Which functionalities of inquirer we can implement here?
@nimit2801 We can prompt questions like:
Location of the collection? Environment variables? Postman globals file as JSON file? Number of iterations to run?
We can add these kind of questions , and can even provide a newman.json (similar to package.json) so that while working on a project people can reuse that file and add there test cases to be run in that similar file, and don't have to provide basic details again
After having a closer look, I think it would be better if instead of prompting questions, if user seeks for --help we provide him with clickable links, and if he chooses one, the same gets appended to his command in CLI, thus he will not have to type it manually nor will have to remember the commands
Example: Makong all thse options clickable, where User can first open --help option and select all those options he want to include, then if he clicks on --close option he will be getting a template of command where he just needs to change the values. We can add --close option to options which will indicate user has selected all options he desired.
Options:
-e, --environment
@coditva , please look if this approach can help in improving the CLI
@yashi12 This seems like an interesting idea! I'm not entirely sure if this is the direction we want Newman to take. I would wait on @codenirvana for his views on this. 😄
@coditva, thanks for looking into it.
Currently while working with newman, to run a collection we have to provide the command to run a collection, what if we can ask the user whether he wants to give the command by himself or do he want us to ask questions so that he can just fill the details, so that he will no longer have to remember the syntax of flags.
We can ask some for some of the most frequently used options.
We can use (Inquirer) to solve it, and can provide a seamless experience to new users who are not that familiar and cannot get even through -h (help) how to use those to make a request.