aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-update
blob: 7c6fe021434cb622de9a5aba1a3656f2dec2ac0a (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
33
// file      : bpkg/pkg-update -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef BPKG_PKG_UPDATE
#define BPKG_PKG_UPDATE

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

#include <bpkg/pkg-command>
#include <bpkg/pkg-update-options>

namespace bpkg
{
  inline int
  pkg_update (const pkg_update_options& o, cli::scanner& args)
  {
    return pkg_command ("update", o, args);
  }

  inline void
  pkg_update (const dir_path& configuration,
              const common_options& o,
              const strings& common_vars,
              const vector<pkg_command_vars>& pkgs)
  {
    pkg_command ("update", configuration, o, common_vars, pkgs);
  }
}

#endif // BPKG_PKG_UPDATE