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/bpkg.cxx | |
parent | 299c4e373d2c2642a8e4c3537eb0436c5a6b9c09 (diff) |
Implement pkg-{configure, disfigure} commands
Diffstat (limited to 'bpkg/bpkg.cxx')
-rw-r--r-- | bpkg/bpkg.cxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 994f115..61bd330 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -14,11 +14,15 @@ // Commands. // #include <bpkg/help> + #include <bpkg/pkg-verify> #include <bpkg/pkg-status> #include <bpkg/pkg-fetch> #include <bpkg/pkg-unpack> #include <bpkg/pkg-purge> +#include <bpkg/pkg-configure> +#include <bpkg/pkg-disfigure> + #include <bpkg/cfg-create> #include <bpkg/rep-create> @@ -200,6 +204,30 @@ try return 0; } + // pkg-configure + // + if (cmd.pkg_configure ()) + { + if (h) + help (ho, "pkg-configure", pkg_configure_options::print_usage); + else + pkg_configure (parse<pkg_configure_options> (co, args), args); + + return 0; + } + + // pkg-disfigure + // + if (cmd.pkg_disfigure ()) + { + if (h) + help (ho, "pkg-disfigure", pkg_disfigure_options::print_usage); + else + pkg_disfigure (parse<pkg_disfigure_options> (co, args), args); + + return 0; + } + // cfg-create // if (cmd.cfg_create ()) |