idmtools.utils.command_line module#

utilities for command line.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

idmtools.utils.command_line.suppress_output(stdout=True, stderr=True)[source]#

Suppress any print/logging from a block of code.

Parameters:
  • stdout – If True, hide output from stdout; if False, show it.

  • stderr – If True, hide output from stderr; if False, show it.