diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-08 16:50:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-08 16:50:59 +0200 |
commit | f9ebe2d1e920df001be2dd543a63677f8728f53d (patch) | |
tree | fb2e4a29a10bc9da85a42b827fbdff6a4f5ada3f /bdep/init.cxx | |
parent | 1c36adab776a900adc7325f412b1c8dd61b1a346 (diff) |
Handle command line project/packages discovery
Diffstat (limited to 'bdep/init.cxx')
-rw-r--r-- | bdep/init.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bdep/init.cxx b/bdep/init.cxx index 3e7998f..1e850b8 100644 --- a/bdep/init.cxx +++ b/bdep/init.cxx @@ -4,6 +4,7 @@ #include <bdep/init.hxx> +#include <bdep/project.hxx> #include <bdep/diagnostics.hxx> using namespace std; @@ -15,10 +16,17 @@ namespace bdep { tracer trace ("init"); - //@@ TODO: validate project/config options for subcommands. + //@@ TODO: validate project/config options for sub-modes. + //@@ TODO: print project/package(s) being initialized. - for (const string& n: o.config_name ()) - text << n; + project_packages pp ( + find_project_packages (o, + o.empty () /* ignore_packages */)); + + text << pp.project; + + for (const dir_path& d: pp.packages) + text << " " << (pp.project / d); return 0; } |