| 1 |
.TH "BST SHOW" "1" "2025-05-09" "2.5" "bst show Manual" |
| 2 |
.SH NAME |
| 3 |
bst\-show \- Show elements in the pipeline |
| 4 |
.SH SYNOPSIS |
| 5 |
.B bst show |
| 6 |
[OPTIONS] [ELEMENTS]... |
| 7 |
.SH DESCRIPTION |
| 8 |
Show elements in the pipeline |
| 9 |
.PP |
| 10 |
Specifying no elements will result in showing the default targets |
| 11 |
of the project. If no default targets are configured, all project |
| 12 |
elements will be shown. |
| 13 |
.PP |
| 14 |
When this command is executed from a workspace directory, the default |
| 15 |
is to show the workspace element. |
| 16 |
.PP |
| 17 |
By default this will show all of the dependencies of the |
| 18 |
specified target element. |
| 19 |
.PP |
| 20 |
Specify ``--deps`` to control which elements to show: |
| 21 |
.PP |
| 22 |
|
| 23 |
none: No dependencies, just the element itself |
| 24 |
run: Runtime dependencies, including the element itself |
| 25 |
build: Build time dependencies, excluding the element itself |
| 26 |
all: All dependencies |
| 27 |
.PP |
| 28 |
**FORMAT** |
| 29 |
.PP |
| 30 |
The ``--format`` option controls what should be printed for each element, |
| 31 |
the following symbols can be used in the format string: |
| 32 |
.PP |
| 33 |
|
| 34 |
%{name} The element name |
| 35 |
%{description} The element description, on a single line (Since: 2.3) |
| 36 |
%{key} The abbreviated cache key (if all sources are consistent) |
| 37 |
%{full-key} The full cache key (if all sources are consistent) |
| 38 |
%{state} cached, buildable, waiting, inconsistent or junction |
| 39 |
%{config} The element configuration |
| 40 |
%{vars} Variable configuration |
| 41 |
%{env} Environment settings |
| 42 |
%{public} Public domain data |
| 43 |
%{workspaced} If the element is workspaced |
| 44 |
%{workspace-dirs} A list of workspace directories |
| 45 |
%{deps} A list of all dependencies |
| 46 |
%{build-deps} A list of build dependencies |
| 47 |
%{runtime-deps} A list of runtime dependencies |
| 48 |
%{source-info} Source provenance information |
| 49 |
%{artifact-cas-digest} The CAS digest of the built artifact |
| 50 |
.PP |
| 51 |
The value of the %{symbol} without the leading '%' character is understood |
| 52 |
as a pythonic formatting string, so python formatting features apply, |
| 53 |
example: |
| 54 |
.PP |
| 55 |
|
| 56 |
bst show target.bst --format \ |
| 57 |
'Name: %{name: ^20} Key: %{key: ^8} State: %{state}' |
| 58 |
.PP |
| 59 |
If you want to use a newline in a format string in bash, use the '$' modifier: |
| 60 |
.PP |
| 61 |
|
| 62 |
bst show target.bst --format \ |
| 63 |
$'---------- %{name} ----------\n%{vars}' |
| 64 |
|
| 65 |
.SH OPTIONS |
| 66 |
.TP |
| 67 |
\fB\-\-except\fP PATH |
| 68 |
Except certain dependencies |
| 69 |
.TP |
| 70 |
\fB\-d,\fP \-\-deps [none|run|build|all] |
| 71 |
The dependencies to show [default: all] |
| 72 |
.TP |
| 73 |
\fB\-\-order\fP [stage|alpha] |
| 74 |
Staging or alphabetic ordering of dependencies [default: stage] |
| 75 |
.TP |
| 76 |
\fB\-f,\fP \-\-format FORMAT |
| 77 |
Format string for each element |