aboutsummaryrefslogtreecommitdiff
path: root/bdep/config.hxx
blob: 2f04719deae289a3dbe4e1d74335b32d7bd4a87d (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
28
// file      : bdep/config.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef BDEP_CONFIG_HXX
#define BDEP_CONFIG_HXX

#include <bdep/types.hxx>
#include <bdep/utility.hxx>

#include <bdep/project.hxx>
#include <bdep/config-options.hxx>

namespace bdep
{
  shared_ptr<configuration>
  cmd_config_add (const dir_path& prj,
                  database&,
                  dir_path           path,
                  optional<string>   name,
                  optional<bool>     default_ = nullopt,
                  optional<uint64_t> id = nullopt);

  int
  cmd_config (const cmd_config_options&, cli::scanner& args);
}

#endif // BDEP_CONFIG_HXX