code: @Given("^I run '(.+?)' locally( with exit status '(.+?)')?( and save the value in environment variable '(.+?)')?$")
      public void executeLocalCommand(String command, String foo, Integer exitStatus, String bar, String envVar) throws Exception {
          if (exitStatus == null) {
              exitStatus = 0;
          }
  
          commonspec.runLocalCommand(command);
          commonspec.runCommandLoggerAndEnvVar(exitStatus, envVar, Boolean.TRUE);
  
          Assertions.assertThat(commonspec.getCommandExitStatus()).isEqualTo(exitStatus);
      }
docs: Executes the command specified in local system
  
  @param command    command to be run locally
  @param foo        regex needed to match method
  @param exitStatus command exit status
  @param bar        regex needed to match method
  @param envVar     environment variable name
  @throws Exception exception