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

#ifndef BPKG_PKG_UNINSTALL_HXX
#define BPKG_PKG_UNINSTALL_HXX

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

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

namespace bpkg
{
  inline int
  pkg_uninstall (const pkg_uninstall_options& o, cli::group_scanner& args)
  {
    return pkg_command ("uninstall", o,
                        "" /* cmd_variant */,
                        o.recursive (),
                        o.immediate (),
                        o.all (),
                        false /* package_cwd */,
                        args);
  }
}

#endif // BPKG_PKG_UNINSTALL_HXX