aboutsummaryrefslogtreecommitdiff
path: root/bdep/clean.hxx
blob: 35b37aa9814f51537603e00bb01bf1093d76d364 (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
29
30
31
32
// file      : bdep/clean.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef BDEP_CLEAN_HXX
#define BDEP_CLEAN_HXX

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

#include <bdep/build.hxx>
#include <bdep/clean-options.hxx>

namespace bdep
{
  inline void
  cmd_clean (const cmd_clean_options& o,
             const shared_ptr<configuration>& c,
             const cstrings& pkgs,
             const strings& cfg_vars)
  {
    run_bpkg (2, o, "clean", "-d", c->path, cfg_vars, pkgs);
  }

  inline int
  cmd_clean (const cmd_clean_options& o, cli::scanner& args)
  {
    return cmd_build (o, &cmd_clean, args);
  }
}

#endif // BDEP_CLEAN_HXX