Skip to content

"""Executes a shell command and returns the std out and std error. #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

"""Executes a shell command and returns the std out and std error.

Args:
  command: List or string representing the command to run.
  env: Dictionary of environment variable settings. If None, no environment
    variables will be set for the child process. This is to make tests more
    hermetic. NOTE: this behavior is different than the standard subprocess
    module.
  close_fds: Whether or not to close all open fd's in the child after
    forking.

Returns:
  A tuple of (return code, std error).
"""

    Args:
      command: List or string representing the command to run.
      env: Dictionary of environment variable settings. If None, no environment
        variables will be set for the child process. This is to make tests more
        hermetic. NOTE: this behavior is different than the standard subprocess
        module.
      close_fds: Whether or not to close all open fd's in the child after
        forking.

    Returns:
      A tuple of (return code, std error).
    """

PiperOrigin-RevId: 749712317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants