aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-install.hxx
blob: 99031ea0ccde1294d957ac18d2d0b3ed57884aff (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
// file      : bpkg/pkg-install.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef BPKG_PKG_INSTALL_HXX
#define BPKG_PKG_INSTALL_HXX

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

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

namespace bpkg
{
  inline int
  pkg_install (const pkg_install_options& o, cli::group_scanner& args)
  {
    return pkg_command ("install",
                        o,
                        "" /* cmd_variant */,
                        o.recursive (),
                        o.immediate (),
                        o.all (),
                        args);
  }
}

#endif // BPKG_PKG_INSTALL_HXX