diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-17 14:05:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-17 14:05:22 +0200 |
commit | 7221a63204a0b2a89e1c72fcbf9f2a7de0a575a3 (patch) | |
tree | cfd02eebc09b6700441d252513f692d1a67ed34f /bpkg/pkg-disfigure | |
parent | 299c4e373d2c2642a8e4c3537eb0436c5a6b9c09 (diff) |
Implement pkg-{configure, disfigure} commands
Diffstat (limited to 'bpkg/pkg-disfigure')
-rw-r--r-- | bpkg/pkg-disfigure | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bpkg/pkg-disfigure b/bpkg/pkg-disfigure new file mode 100644 index 0000000..0e16a40 --- /dev/null +++ b/bpkg/pkg-disfigure @@ -0,0 +1,26 @@ +// file : bpkg/pkg-disfigure -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_PKG_DISFIGURE +#define BPKG_PKG_DISFIGURE + +#include <bpkg/types> +#include <bpkg/forward> // transaction, package +#include <bpkg/pkg-disfigure-options> + +namespace bpkg +{ + void + pkg_disfigure (const pkg_disfigure_options&, cli::scanner& args); + + // Disfigure the package, update its state, and commit the + // transaction. + // + void + pkg_disfigure (const dir_path& configuration, + transaction&, + const shared_ptr<package>&); +} + +#endif // BPKG_PKG_DISFIGURE |