From a80d5cd883263271650925926dfd734f488bb731 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Fri, 11 Dec 2020 15:37:48 +0100 Subject: [PATCH] added target and os calls to output of spack spec commands --- lib/spack/docs/developer_guide.rst | 2 +- lib/spack/docs/getting_started.rst | 2 +- lib/spack/docs/packaging_guide.rst | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/spack/docs/developer_guide.rst b/lib/spack/docs/developer_guide.rst index 6b67ef9f77..695e3a84bc 100644 --- a/lib/spack/docs/developer_guide.rst +++ b/lib/spack/docs/developer_guide.rst @@ -761,7 +761,7 @@ supply ``--profile`` to Spack on the command line, before any subcommands. ``spack --profile`` output looks like this: -.. command-output:: spack --profile graph hdf5 +.. command-output:: spack --profile graph hdf5 os=SUSE target=x86_64 :ellipsis: 25 The bottom of the output shows the top most time consuming functions, diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst index 1bf99e09b3..6b01bf4950 100644 --- a/lib/spack/docs/getting_started.rst +++ b/lib/spack/docs/getting_started.rst @@ -206,7 +206,7 @@ Check Installation With Spack installed, you should be able to run some basic Spack commands. For example: -.. command-output:: spack spec netcdf-c +.. command-output:: spack spec netcdf-c target=x86_64 os=SUSE In theory, Spack doesn't need any additional installation; just download and run! But in real life, additional steps are usually diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst index 5b0e556b34..600f0fb72e 100644 --- a/lib/spack/docs/packaging_guide.rst +++ b/lib/spack/docs/packaging_guide.rst @@ -6099,13 +6099,13 @@ Spack provides the ``spack graph`` command for graphing dependencies. The command by default generates an ASCII rendering of a spec's dependency graph. For example: -.. command-output:: spack graph hdf5 +.. command-output:: spack graph hdf5 target=x86_64 os=SUSE At the top is the root package in the DAG, with dependency edges emerging from it. On a color terminal, the edges are colored by which dependency they lead to. -.. command-output:: spack graph --deptype=link hdf5 +.. command-output:: spack graph --deptype=link hdf5 target=x86_64 os=SUSE The ``deptype`` argument tells Spack what types of dependencies to graph. By default it includes link and run dependencies but not build @@ -6120,7 +6120,7 @@ dependencies. The default is ``--deptype=all``, which is equivalent to You can also use ``spack graph`` to generate graphs in the widely used `Dot `_ format. For example: -.. command-output:: spack graph --dot hdf5 +.. command-output:: spack graph --dot hdf5 target=x86_64 os=SUSE This graph can be provided as input to other graphing tools, such as those in `Graphviz `_. If you have graphviz -- 2.38.0