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

Allow more flexible placement of Tango (sub)tree(s). #11

Open
pnkfelix opened this issue Dec 28, 2016 · 0 comments
Open

Allow more flexible placement of Tango (sub)tree(s). #11

pnkfelix opened this issue Dec 28, 2016 · 0 comments

Comments

@pnkfelix
Copy link
Owner

pnkfelix commented Dec 28, 2016

Currently Tango assumes that all .rs and .md files are underneath src/ in the current working directory.

This means that if you want Tango to run on only a subset of your files, you need to go through machinations like this (taken from pnkfelix/mon-artist@e7896eb):

    env::set_current_dir(lit).unwrap();
    tango::process_root().unwrap();

(where lit is set up by reading env::current_dir and then pushing src/lit/.)

This is unfortunate, and there's no real good reason for it beyond laziness on my part. At the very least we could take inspiration from the lalrpop crate, which seems to provide both an easy fn process_root and then a more intricate entry point where one supplies a configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant