aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-clean.hxx
blob: e6dfcbef7da461d6f075918109a7a6d32fd50ef4 (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
// file      : bpkg/pkg-clean.hxx -*- C++ -*-
// license   : MIT; see accompanying LICENSE file

#ifndef BPKG_PKG_CLEAN_HXX
#define BPKG_PKG_CLEAN_HXX

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

#include <bpkg/pkg-command.hxx>
#include <bpkg/pkg-clean-options.hxx>

namespace bpkg
{
  inline int
  pkg_clean (const pkg_clean_options& o, cli::group_scanner& args)
  {
    return pkg_command ("clean",
                        o,
                        "" /* cmd_variant */,
                        o.recursive (),
                        o.immediate (),
                        o.all (),
                        o.all_pattern (),
                        false /* package_cwd */,
                        true /* allow_host_type */,
                        args);
  }
}

#endif // BPKG_PKG_CLEAN_HXX