On Wednesday, 11 July 2018 at 16:43:24 UTC, Seb wrote:
I don't know of an easy way to do out of the box.
However, with dmd's new -i option, it could be as easy as:
---
dub fetch requests
cat > test.d << EOF
import std.stdio;
import requests;
void main() {
auto content =
On Wednesday, 11 July 2018 at 16:13:56 UTC, Matthew OConnor wrote:
Hi, I'm new to D and trying to make some command line tools
that are run with `#!/usr/bin/env rdmd`. But I would also like
to reference external packages from dub. I know I can do this
with:
#!/usr/bin/env dub
/+
Hi, I'm new to D and trying to make some command line tools that
are run with `#!/usr/bin/env rdmd`. But I would also like to
reference external packages from dub. I know I can do this with:
#!/usr/bin/env dub
/+ dub.sdl:
name "get"
dependency "requests" version="~>0.3.2"