Coder Social home page Coder Social logo

Comments (5)

shairozan avatar shairozan commented on May 24, 2024

It may be possible with some black magic. Cobra exposes a HelpTemplate that a user can define. What we could do is define / reverse engineer the existing template such that if -json is passed, help would generate just an object of json values. That way you could basically go over them key by key and see if you have any gaps, especially for key components you're looking for.

Requires a lot more looking since I don't even know where in cobra the default template is. Gotta figure out they're getting the merged flags.

from bbr.

seth127 avatar seth127 commented on May 24, 2024

@dpastoor you make the call as to whether we want @shairozan to look into the solution he mentioned. If not, the keys are currently in sync (based on my own manual checking) but we won't have any programmatic guarantees that they stay in sync.

from bbr.

shairozan avatar shairozan commented on May 24, 2024

You kind of will have programmatic guarantees through drone builds. You could have that as a step of testing if I can get it to work, where it would pull latest for babylon and then look at the keys, iterate over them and make sure you that the keys you are using appear in the output

from bbr.

seth127 avatar seth127 commented on May 24, 2024

I'm putting this on the "roadmap" for the future. As of now they are manually synchronized, but there is no testing to ensure it stays that way.

from bbr.

seth127 avatar seth127 commented on May 24, 2024

Closing this because the most likely path forward for this issue is captured in #171

from bbr.

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.