diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-14 14:34:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-14 14:34:12 +0200 |
commit | 7acf8ce6111e3740decd39b92c3383fcbdd00e21 (patch) | |
tree | 2c9c6d75bbac9b3b8a4dc9e7b46df01ba0ca3bf2 /bdep/fetch.cli | |
parent | c8f2a2c0776aee57af6af10d4a0128befbc1fdeb (diff) |
Implement fetch command
Diffstat (limited to 'bdep/fetch.cli')
-rw-r--r-- | bdep/fetch.cli | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/bdep/fetch.cli b/bdep/fetch.cli new file mode 100644 index 0000000..f5e17d3 --- /dev/null +++ b/bdep/fetch.cli @@ -0,0 +1,47 @@ +// file : bdep/fetch.cli +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +include <bdep/project.cli>; + +"\section=1" +"\name=bdep-fetch" +"\summary=fetch list of available project dependencies" + +namespace bdep +{ + { + "<options> + <prj-spec> <prj-dir> + <cfg-spec> <cfg-name> <cfg-dir>", + + "\h|SYNOPSIS| + + \c{\b{bdep fetch} [<options>] [\b{--full}|\b{-F}] [<prj-spec>] [<cfg-spec>]} + + \c{<prj-spec> = \b{--directory}|\b{-d} <prj-dir>\n + <cfg-spec> = (\b{@}<cfg-name> | \b{--config}|\b{-c} <cfg-dir>)... | \b{--all}|\b{-a}} + + \h|DESCRIPTION| + + The \cb{fetch} command re-fetches the list of available packages in the + project's prerequisite and complement repositories, recursively. + + If the \cb{--full|-F} option is specified, then instead \cb{fetch} + performs a full re-fetch of all the repositories added to the + configuration. This mode is primarily useful when a configuration (and + some of the prerequisite/complement repositories) are shared between + several projects. In this situation an incremental fetch may result in + an inconsistent repository state." + } + + class cmd_fetch_options: project_options + { + "\h|FETCH OPTIONS|" + + bool --full|-F + { + "Perform a full re-fetch of all the repositories." + } + }; +} |