diff options
author | Naresh <ghostwriternr@gmail.com> | 2018-06-12 08:37:49 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-12 08:39:49 -0700 |
commit | 16b33e87e4d8390850cba045b749076d59e797e6 (patch) | |
tree | ebefc126eda8f43e61670881a82ec49d5edada51 /site/docs/tutorial | |
parent | 06325053ff3ccfd3f6b119a57b6ebd3d8cfc6efb (diff) |
Fix xdot command example in cpp tutorial
[Documentation fix]
In recent versions of xdot, piping the output of `bazel query` no
longer displays the visualization due to an unrelated change in xdot.
So, use redirection instead of pipe.
Closes #5316.
PiperOrigin-RevId: 200220180
Diffstat (limited to 'site/docs/tutorial')
-rw-r--r-- | site/docs/tutorial/cpp.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/docs/tutorial/cpp.md b/site/docs/tutorial/cpp.md index 7a23456319..9d6b9896a8 100644 --- a/site/docs/tutorial/cpp.md +++ b/site/docs/tutorial/cpp.md @@ -203,8 +203,8 @@ Then you can generate and view the graph by piping the text output above straight to xdot: ``` -bazel query --nohost_deps --noimplicit_deps 'deps(//main:hello-world)' \ - --output graph | xdot +xdot <(bazel query --nohost_deps --noimplicit_deps 'deps(//main:hello-world)' \ + --output graph) ``` As you can see, the first stage of the sample project has a single target |