savestdout

command
v0.0.0-...-5fb8a3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

savestdout

savestdout is a small tool to save the stdout of a command to a file, without using a shell.

It was made to be used in Bazel rule definitions that want to run a command and save its output to stdout without going through ctx.actions.run\_shell.

Once bazelbuild/bazel/issues/5511 gets fixed, rules that need this behaviour can start using native Bazel functionality instead, and this tool should be deleted.

Usage

Command line usage:

bazel build //build/savestdout
bazel run bazel-bin/build/savestdout/*/savestdout /tmp/foo ps aux

For an example of use in rules, see node_initramfs in //code/def.bzl.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL