Skip to content

Inc command not behaves as expected #843

Closed

Description

@gzsombor

I'm trying to do some minor xml manipulation, but it seems, that 'inc' command is fails to act on paths:
This works :

$ fetch https://raw.githubusercontent.com/apache/arrow/master/java/pom.xml  | get project.properties.'dep.jackson.version'
2.9.8

This also works:

$ fetch https://raw.githubusercontent.com/apache/arrow/master/java/pom.xml  | get project.properties.'dep.jackson.version' | inc --patch
2.9.9

However, this will cut out everything from the xml.
I hoped, I can do something like this

$ fetch https://raw.githubusercontent.com/apache/arrow/master/java/pom.xml  | inc --patch  "project.properties.'dep.jackson.version'"
error: Type Error
- shell:1:89
1 | fetch https://raw.githubusercontent.com/apache/arrow/master/java/pom.xml  | inc --patch  "project.properties.'dep.jackson.version'"
  |                                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected column path, found String

Activity

  1. andrasio commented on Oct 20, 2019

    @andrasio
    Member

    @gzsombor I should work now. Try ... | inc project.properties."dep.jackson.version" --patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions