diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-19 21:47:04 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-21 17:42:43 +0300 |
commit | 89dd478de7cf075beac69d0145df46f914cf35cf (patch) | |
tree | be960f2406d087135c6456cff654de1f24a91557 /bpkg/pkg-checkout.cli | |
parent | d75d1d9e1c5b03b17fdea1fa3638db2bfe5e8d12 (diff) |
Add support for pkg-checkout
Diffstat (limited to 'bpkg/pkg-checkout.cli')
-rw-r--r-- | bpkg/pkg-checkout.cli | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bpkg/pkg-checkout.cli b/bpkg/pkg-checkout.cli new file mode 100644 index 0000000..3283a3f --- /dev/null +++ b/bpkg/pkg-checkout.cli @@ -0,0 +1,41 @@ +// file : bpkg/pkg-checkout.cli +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +include <bpkg/configuration.cli>; + +"\section=1" +"\name=bpkg-pkg-checkout" +"\summary=check out package version" + +namespace bpkg +{ + { + "<options> <pkg> <ver>", + + "\h|SYNOPSIS| + + \c{\b{bpkg pkg-checkout} [<options>] <pkg>/<ver>} + + \h|DESCRIPTION| + + The \cb{pkg-checkout} command checks out the specified package version + from one of the version control-based repositories (\l{bpkg-rep-add(1)}). + The resulting package state is \cb{unpacked} (\l{bpkg-pkg-status(1)}). + + If the \cb{--replace|-r} option is specified, then \cb{pkg-checkout} will + replace the archive and/or source directory of a package that is already + in the \cb{unpacked} or \cb{fetched} state." + } + + class pkg_checkout_options: configuration_options + { + "\h|PKG-CHECKOUT OPTIONS|" + + bool --replace|-r + { + "Replace the source directory if the package is already fetched or + unpacked." + } + }; +} |