From 1c36adab776a900adc7325f412b1c8dd61b1a346 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Mar 2018 15:22:51 +0200 Subject: Setup compilation, command line handling --- bdep/init.cxx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bdep/init.cxx (limited to 'bdep/init.cxx') 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 + +#include + +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; + } +} -- cgit v1.1