You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 thetango
command were a bit more powerful and gave you more control over what happens.Some possible subcommands:
tango build
- generates the Rust code oncetango clean
- removes generated filestango watch
- watches thesrc/
directory for changes (probably using watchexec) and automatically regenerates the Rust code and compiles it for youIt might be useful to have a configuration file (i.e.
tango.toml
) that:target/tango/
) so yoursrc/
directory doesn't end up with loads of double-upsIf 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!
The text was updated successfully, but these errors were encountered: