For now, an user can set a project property with command line like this: bothub property set a_key a_value.
For some cases, a JSON can be used for value and the JSON string should escape every ", so cumbersome.
bothub property set menu "{\"Watermelon Juice\": {\"description\": \"Made by a watermelon.\", \"price\": 5000}, \"Melon Juice\": {\"description\": \"Made by a melon.\", \"price\": 4500}, \"Strawberry Juice\": {\"description\": \"Made by strawberry.\", \"price\": 3500}, \"Orange Juice\": {\"description\": \"Made by an orange.\", \"price\": 3000}, \"Kiwifruit Juice\": {\"description\": \"Made by a Kiwifruit.\", \"price\": 3800}}"
So it would be useful if an user can set a property value from file or stdin. An user can execute CLI without value, and enter value to prompt, or use --file option to specify a data file.
For now, an user can set a project property with command line like this:
bothub property set a_key a_value.For some cases, a JSON can be used for value and the JSON string should escape every
", so cumbersome.So it would be useful if an user can set a property value from file or stdin. An user can execute CLI without value, and enter value to prompt, or use
--fileoption to specify a data file.