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

Re-write the CLI interface #51

Open
suntong opened this issue Jul 17, 2017 · 0 comments
Open

Re-write the CLI interface #51

suntong opened this issue Jul 17, 2017 · 0 comments

Comments

@suntong
Copy link

suntong commented Jul 17, 2017

OK to re-write the gojson using the CLI handling of jsonfiddle j2s instead? (of course no sub-commands for gojson like jsonfiddle j2s)

Currently the advantages of jsonfiddle j2s over gojson are:

  • No longer uses the dummy Foo as the default for the name of the struct now, but use the input file name to automatic set the struct name instead, yet it can be overridden from command line (by --name). Check the details here.
  • Internally, much more code consolidation and simplification (e.g., input/output file handling) have been done under the hood, so the hand-edited code has been reduced from over a hundred (132) to just several lines.

Much more enhancements will be taken place, check out details here, but all depends on the new CLI infrastructure, as writing CLI handling by hand should give way to automatic code generation.

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

1 participant