From 4f6abb0576e810b37d56ad3cafc67fac84682ec2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Mar 2018 15:24:48 +0200 Subject: Implement status command --- bdep/status.cli | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 bdep/status.cli (limited to 'bdep/status.cli') diff --git a/bdep/status.cli b/bdep/status.cli new file mode 100644 index 0000000..a8d1e49 --- /dev/null +++ b/bdep/status.cli @@ -0,0 +1,70 @@ +// file : bdep/status.cli +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +include ; + +"\section=1" +"\name=bdep-status" +"\summary=print status of project and/or its dependencies" + +namespace bdep +{ + { + " + + + + ", + + "\h|SYNOPSIS| + + \c{\b{bdep status} [] [] [] [...]} + + \c{ = [\b{/}]\n + = (\b{@} | \b{--config}|\b{-c} )... | \b{--all}|\b{-a}\n + = (\b{--directory}|\b{-d} )... | \n + = \b{--directory}|\b{-d} } + + \h|DESCRIPTION| + + The \cb{status} command prints the status of the project and/or its + dependencies in build configurations. If no arguments are + specified, then \cb{status} prints the status of the project's packages. + Otherwise, the status of the specified dependency packages is printed. + Additionally, the status of immediate or all dependencies of the above + packages can be printed by specifying the \c{\b{--immediate}|\b{-i}} or + \c{\b{--recursive}|\b{-r}} options, respectively. Note that the status is + written to \cb{STDOUT}, not \cb{STDERR}. + + The status of each package is printed on a separate line. The semantics + of and the format of the status line are described in + \l{bpkg-pkg-status(1)}. + " + } + + class cmd_status_options: project_options + { + "\h|STATUS OPTIONS|" + + bool --immediate|-i + { + "Also print the status of immediate dependencies." + } + + bool --recursive|-r + { + "Also print the status of all dependencies, recursively." + } + + bool --fetch|-f + { + "Perform the \cb{fetch} command prior to printing the status." + } + + bool --fetch-full|-F + { + "Perform the \cb{fetch --full} command prior to printing the status." + } + }; +} -- cgit v1.1