blob: 724caa83ee3e930dbffa9b8e9957002f1e6f3dff (
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
|
// file : bpkg/pkg-command -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BPKG_PKG_COMMAND
#define BPKG_PKG_COMMAND
#include <bpkg/types>
#include <bpkg/forward> // selected_package
#include <bpkg/configuration-options>
namespace bpkg
{
// Common pkg-{update,clean,test,install,...} implementation.
//
int
pkg_command (const string& cmd, // Without the 'pkg-' prefix.
const configuration_options&,
cli::scanner& args);
void
pkg_command (const string& cmd,
const dir_path& configuration,
const shared_ptr<selected_package>&);
}
#endif // BPKG_PKG_COMMAND
|