-
-
Notifications
You must be signed in to change notification settings - Fork 237
Add a command to DUB to list all of the import paths for a project. #552
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
Conversation
I think it would be nicer to add this as |
A test for this and |
Okay then. I'll see about adding the command as switches on I might have to come back to this during the week, but I'll get it done eventually. |
Just add a shell script, |
You found some time to implement it? |
…ribe' instead of a new command. Add some scripts for testing the output of each, and a smoke test for 'dub describe'.
I just updated this again with the options as you requested. I added some test scripts for checking the output of each option, and a smoke test for dub describe. Maybe something could be done to test the JSON output for I modified the script which runs the other test scripts so the I'll see if I can figure out why the Travis CI script works on my machine, but fails on Travis CI. |
There we go. I was dumb and committed my absolute paths, so now the scripts generate them in the environment. I also needed to add some dummy files so the right directories will be created, for the paths dub uses automatically. |
source/dub/dub.d
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can return the paths array insyead of making it an output parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do. I was just following the way the other methods in the class were using output parameters.
Looks good, thanks. |
I updated the D source files and the Bash scripts now. I created some very basic tests with |
It should be preinstalled (http://docs.travis-ci.com/user/build-environment-updates/2014-12-09/#Additions), but not too important right now. |
Add a command to DUB to list all of the import paths for a project.
W000t! This is awesome! Thanks a ton for this, @w0rp and @MartinNowak!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an = and?
Related to a recent discussion, this patch will add a command to dub to list all of the import paths used
for a project, line-by-line.
There might be some details I missed here, so I would appreciate some input. I have next to no experience with the DUB codebase.