Code Monkey home page Code Monkey logo

Comments (4)

DHowett avatar DHowett commented on August 22, 2024 1

That's a fair point. It might be worth having a smaller separate package that just takes the text plist parsing code out of this one and handles defaults' output 😄

That way, users don't have to have a bunch of XML/Binary parsing they don't need, and this package can keep up with the plist standard without worrying about breaking defaults' parsing!

from go-plist.

DHowett avatar DHowett commented on August 22, 2024

Thanks for the request!

So, here's the problem with defaults: the output from defaults is not a property list. It pretends to be one, but it doesn't follow a number of the basic formatting rules. It's just not a recognizable property list format. I'm not sure that I want to add support for various not-actually-plist formats to the plist library 😄

I have to ask, though: the input to defaults is a property list file. Why not just parse the property list directly instead of asking defaults to convert it and then trying to parse it after defaults is done with it? It's a middleman that is effectively corrupting the data. By skipping it, you'll get more reliable results and you're guaranteed that that data is in the right format.

from go-plist.

catilac avatar catilac commented on August 22, 2024

ah! i definitely see what you mean.
defaults read gives a giant blob of "plist" defaults data for all the domains. would you be open to a mode that can manage this weird output? Being able to use defaults read gets me exactly what i'm looking for, without having to scan for plist files.

from go-plist.

catilac avatar catilac commented on August 22, 2024

Sounds good! :)

from go-plist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.