mirror of
https://github.com/dlang/tools.git
synced 2025-05-05 17:43:01 +03:00
Support --git-target to specify the tag/branch to use for linking to source code.
This commit is contained in:
parent
e5bde65c61
commit
d24b11faa8
2 changed files with 8 additions and 1 deletions
|
@ -1,10 +1,16 @@
|
|||
module app;
|
||||
|
||||
import ddox.main;
|
||||
import std.getopt;
|
||||
import std.process;
|
||||
import vibe.core.log;
|
||||
|
||||
int main(string[] args)
|
||||
{
|
||||
string git_target = "master";
|
||||
getopt(args, std.getopt.config.passThrough,
|
||||
"git-target", &git_target);
|
||||
environment["GIT_TARGET"] = git_target;
|
||||
setPlainLogging(true);
|
||||
return ddoxMain(args);
|
||||
}
|
||||
|
|
|
@ -68,8 +68,9 @@ html(lang='en-US')
|
|||
#content
|
||||
- if( auto modname = info.node.moduleName )
|
||||
#tools
|
||||
- import std.process;
|
||||
- string project, path_prefix, line_suffix;
|
||||
- string target = "v2.061";
|
||||
- string target = environment["GIT_TARGET"];
|
||||
- if( modname.startsWith("core.") )
|
||||
- project = "druntime", path_prefix = "src/";
|
||||
- else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue