Open pulkitsinghal opened 6 years ago
Brainstorming ideas:
Maybe a JSON file can store description, keyName, defaultValue etc and that can be loaded into the CLI tool which then goes through all the keys and prompts the user to add a value or accept the default while showing the description as a hint about what the key/value pair does.
Ultimately the env file which would be saved can put description as comments and the key=value
under it.
Some key value pairs which should be generated by terraform might require the cli wizard to spin off a child bash command which can still interact with the user and when it’s done then the input control goes back to the cli wizard
Tools that come to mind
But still not sure about a framework that can start other bash commands as its children and resume control later in an effortless fashion.
@pulkitsinghal Before we go ahead for any cli development, here is the following strategy I would like to mention that can work well.
.env
file is present read the values from there@pulkitsinghal Solved https://github.com/ShoppinPal/warehouse/pull/273
It would be great if a CLI wizard asked all the relevant questions and then setup the following files:
.env
,worker.env
,worker2.env
Its the next step in making things better.
So @harshadyeola, cCould this be something that you want to eventually delegate to @Bhushan001?