aboutsummaryrefslogtreecommitdiff
path: root/bdep/config.cxx
blob: 59dcbadb801a17566994efb0b8b9b5f9d5a96f33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// file      : bdep/config.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#include <bdep/config.hxx>

#include <bdep/diagnostics.hxx>

using namespace std;

namespace bdep
{
  int
  cmd_config (const cmd_config_options& o, cli::scanner& args)
  {
    //@@ TODO: get subcommand and pass to tracer.

    tracer trace ("config");

    //@@ TODO: validate project/config options for subcommands.

    for (const string& n: o.config_name ())
      text << n;

    return 0;
  }
}