whole_func_string: function exec(cmd) {
          return new Promise(
              function (resolve, reject) {
                  child_process.exec(cmd, function (error, stdout, stderr) {
                      if (error) {
                          reject(stderr.trim());
                      } else {
                          resolve(stdout.trim());
                      }
                  });
              }
          );
      }
func_code_string: function exec(cmd) {
          return new Promise(
              function (resolve, reject) {
                  child_process.exec(cmd, function (error, stdout, stderr) {
                      if (error) {
                          reject(stderr.trim());
                      } else {
                          resolve(stdout.trim());
                      }
                  });
              }
          );
      }
func_documentation_string: Helper function to run shell commands.