aboutsummaryrefslogtreecommitdiff
path: root/bdep/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/init.cxx')
-rw-r--r--bdep/init.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/bdep/init.cxx b/bdep/init.cxx
new file mode 100644
index 0000000..3e7998f
--- /dev/null
+++ b/bdep/init.cxx
@@ -0,0 +1,25 @@
+// file : bdep/init.cxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#include <bdep/init.hxx>
+
+#include <bdep/diagnostics.hxx>
+
+using namespace std;
+
+namespace bdep
+{
+ int
+ cmd_init (const cmd_init_options& o, cli::scanner& args)
+ {
+ tracer trace ("init");
+
+ //@@ TODO: validate project/config options for subcommands.
+
+ for (const string& n: o.config_name ())
+ text << n;
+
+ return 0;
+ }
+}