Skip to content

Set properties from file or stdin #10

@toracle

Description

@toracle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions