aboutsummaryrefslogtreecommitdiff
path: root/bdep/update.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-10 10:34:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-10 10:34:31 +0200
commit023f1a286b7dfe80eb80a9e6924e492cf6f3f80a (patch)
tree6accbb5ccee95ae5cb7ba9f186b2694c9797b2d9 /bdep/update.cli
parente3133aa9628858bcfe414f95731831b5962358c7 (diff)
Implement test, update, and clean commands
Diffstat (limited to 'bdep/update.cli')
-rw-r--r--bdep/update.cli49
1 files changed, 49 insertions, 0 deletions
diff --git a/bdep/update.cli b/bdep/update.cli
new file mode 100644
index 0000000..e78dab4
--- /dev/null
+++ b/bdep/update.cli
@@ -0,0 +1,49 @@
+// file : bdep/update.cli
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+include <bdep/project.cli>;
+
+"\section=1"
+"\name=bdep-update"
+"\summary=update project in build configurations"
+
+namespace bdep
+{
+ {
+ "<options>
+ <prj-spec> <prj-dir>
+ <pkg-spec> <pkg-dir>
+ <cfg-spec> <cfg-name> <cfg-dir>
+ <cfg-var>",
+
+ "\h|SYNOPSIS|
+
+ \c{\b{bdep update} [<options>] [<pkg-spec>] [<cfg-spec>] [<cfg-var>...]}
+
+ \c{<cfg-spec> = (\b{@}<cfg-name> | \b{--config}|\b{-c} <cfg-dir>)... | \b{--all}|\b{-a}\n
+ <pkg-spec> = (\b{--directory}|\b{-d} <pkg-dir>)... | <prj-spec>\n
+ <prj-spec> = \b{--directory}|\b{-d} <prj-dir>}
+
+ \h|DESCRIPTION|
+
+ The \cb{update} command updates the project packages in one or more build
+ configurations. Underneath it executes the \l{bpkg-pkg-update(1)} command
+ which itself is not much more than the build system \cb{update} operation
+ (see \l{b(1)} for details). As a result, the main utility of this command
+ is the ability to refer to build configurations by names and to project
+ packages implicitly via the current working directory.
+
+ If no project or package directory is specified, then the current working
+ directory is assumed. If no configuration is specified, then the default
+ configuration is assumed. See \l{bdep-projects-configs(1)} for details on
+ specifying projects and configurations. Optional \c{\i{cfg-var}...} are
+ the additional configuration variables to pass to the build system.
+ "
+ }
+
+ class cmd_update_options: project_options
+ {
+ "\h|UPDATE OPTIONS|"
+ };
+}