Skip to content

Idea: put-value #2

@kseistrup

Description

@kseistrup

Would it be possible to create a version of shyaml/shjson that manipulated key-value pairs? E.g.:

$ echo '{"a": 1, "b": 2}' | shjson put-value c 3
{
  "a": 1,
  "b": 2,
  "c": 3
}

or

$ echo '{"a": 1, "b": 2}' | shjson put-value b 7
{
  "a": 1,
  "b": 7
}

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions