bob-layers
Name
bob-layers - Handle layers
Synopsis
bob layers update [-h] [-lc LAYERCONFIG] [-D DEFINES]
[--indent INDENT | --no-indent]
[--format {yaml,json,flat}]
bob layers status [-h] [-lc LAYERCONFIG] [-D DEFINES] [--show-clean]
[--show-overrides] [-v]
bob layers update [-h] [-lc LAYERCONFIG] [-D DEFINES]
[--attic | --no-attic] [-v]
Description
Update layers or show their status. The following sub-commands are available:
lsList known layers and their properties. There are multiple output formats available. The output of this command is supposed to stay stable and is thus suitable for scripting.
updateUpdates the layers.
statusShow the SCM-status of each layer and optionally list modifications. See bob status for a description of the output fields.
Options
--atticMove layer workspace to attic if inline SCM switching is not possible. (Default)
--no-atticDo not move layer workspace to attic if inline SCM switching is not possible. Instead a build error is issued.
--format {yaml,json,flat}Selects a different output format. Defaults to
yaml. Theflatformat is an INI-style format where each key/value pair is printed on a separate line.--indent INDENTThe
yamlandjsonoutput formats are pretty printed with an indentation of 4 spaces by default. Use this option to chance this toINDENTnumber of spaces.--no-indentDisables the pretty printing of the
yamlandjsonformats. The output will be more compact but is less readable.-lc LAYERCONFIGUse additional layer configuration file.
This configuration file is used to control the layers checkout. It support only a subset of the Project configuration (config.yaml) file keys, namely
layersInclude,layersRequire,layersScmOverridesandlayersWhitelistThe
.yamlsuffix is appended automatically and the configuration file is searched relative to the build directory, unless an absolute path is given. This option can be given multiple times. The files will be parsed in the order as they appeared on the command line. Later files on the command line have a higher precedence.-D VAR=VALUEOverride default or set environment variable.
Sets the variable
VARtoVALUE. This overrides the value possibly set bydefault.yaml, config files passed by-cor any file that was included by either of these files.--show-cleanShow the status of a layer even if unmodified. This includes
--show-overrides.--show-overridesShow layers that have active layersScmOverrides (
O) even if the layer is unchanged. Override information is always displayed if a layer is shown but aSTATUSline is normally only emitted if the SCM was modified. Adding-vwill additionally show the detailed override status.-v, --verboseIncrease verbosity (may be specified multiple times)