Skip to content
New issue

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

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

Already on GitHub? # to your account

More powerful CLI #19

Open
Michael-F-Bryan opened this issue Oct 4, 2017 · 1 comment
Open

More powerful CLI #19

Michael-F-Bryan opened this issue Oct 4, 2017 · 1 comment

Comments

@Michael-F-Bryan
Copy link

I thought I'd try this out when writing a toy static analyser. Although I've got it hooked into my build.rs, it'd be nice if the tango command were a bit more powerful and gave you more control over what happens.

Some possible subcommands:

  • tango build - generates the Rust code once
  • tango clean - removes generated files
  • tango watch - watches the src/ directory for changes (probably using watchexec) and automatically regenerates the Rust code and compiles it for you

It might be useful to have a configuration file (i.e. tango.toml) that:

  • lets you specify all source will be in markdown
  • the destination for the generated code (e.g. target/tango/) so your src/ directory doesn't end up with loads of double-ups
  • A header to add to each generated file (i.e. "generated by tango, do not edit") if we're in markdown-only mode.

If I have time I'll see if I can make a couple PRs to give the CLI tool more features and options. What are your thoughts?

Great project by the way, I really like the idea and how you've implemented it!

@pnkfelix
Copy link
Owner

hmm. yes you are probably right that we should surface any library API entry method(s) with a command line interface as well.

@Nasreen123 had started doing some work in trying to develop a new entry-point. I think I will attempt to continue with her effort.

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

No branches or pull requests

2 participants