Skip to content

More powerful CLI #19

@Michael-F-Bryan

Description

@Michael-F-Bryan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions