Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is there something like jsonpath? #133

Open
rgl opened this issue Jun 1, 2021 · 2 comments
Open

Question: Is there something like jsonpath? #133

rgl opened this issue Jun 1, 2021 · 2 comments

Comments

@rgl
Copy link

rgl commented Jun 1, 2021

Is something alike jsonpath/xpath supported by this library?

Something that would allow me to get/set the value of plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options.SystemdCgroup that is inside the document:

version = 2
[plugins]
  [plugins."io.containerd.grpc.v1.cri"]
   [plugins."io.containerd.grpc.v1.cri".containerd]
      [plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
        [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
          runtime_type = "io.containerd.runc.v2"
          [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
            SystemdCgroup = true

Or something that would take plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options and would return the table container?

@MrGreenTea
Copy link
Contributor

@rgl you could use glom for this, as that seems out of scope for a parsing library like tomlkit.

@wakely
Copy link

wakely commented Mar 4, 2022

@MrGreenTea Should glom work for deep assignments with tomlkit? Seems like it does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants