Skip to content

ToJSON or JSON format for import/export of CLI options #1607

@abitrolly

Description

@abitrolly

I wonder if it is possible to create a generic options definition serialization/exchange format in JSON?

Then the stuff like Markdown help, man pages and command line completion (https://github.com/urfave/cli/pull/1606/files) could be generated from that JSON format by external tools without bloating the size of urfave/cli binaries (#1594).

I already tried to play with that a bit with Python here - abitrolly/podman-compose@0cd4197 - so it is possible to extract that bit to see if urfave/cli export and Python argparse export can be compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/v2relates to / is being considered for v2kind/questionsomeone asking a questionstatus/triagemaintainers still need to look into this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions