diff options
| author | ruki <[email protected]> | 2020-09-25 00:33:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-25 00:33:07 +0800 |
| commit | 90af4956738036172984f068502624bbc515cae7 (patch) | |
| tree | 7cd7177becaf98e676ae8eaa478f042e14505d3a /xmake/core/base/process.lua | |
| parent | 700f08a7bae11c22295f884610f98b7b99eb1790 (diff) | |
fix trailing white-space
Diffstat (limited to 'xmake/core/base/process.lua')
| -rw-r--r-- | xmake/core/base/process.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/core/base/process.lua b/xmake/core/base/process.lua index 78f698f6a..40755d6ef 100644 --- a/xmake/core/base/process.lua +++ b/xmake/core/base/process.lua @@ -11,7 +11,7 @@ -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. --- +-- -- Copyright (C) 2015-2020, TBOOX Open Source Group. -- -- @author ruki @@ -50,7 +50,7 @@ function _subprocess.new(program, proc) return subprocess end --- get the process name +-- get the process name function _subprocess:name() if not self._NAME then self._NAME = path.filename(self:program()) @@ -58,7 +58,7 @@ function _subprocess:name() return self._NAME end --- get the process program +-- get the process program function _subprocess:program() return self._PROGRAM end @@ -163,12 +163,12 @@ end -- open a subprocess -- -- @param command the process command --- @param opt the option arguments, e.g. {stdout = filepath/file/pipe, stderr = filepath/file/pipe, envs = {"PATH=xxx", "XXX=yyy"}}) +-- @param opt the option arguments, e.g. {stdout = filepath/file/pipe, stderr = filepath/file/pipe, envs = {"PATH=xxx", "XXX=yyy"}}) -- -- @return the subprocess -- function process.open(command, opt) - + -- get stdout and pass to subprocess opt = opt or {} local stdout = opt.stdout @@ -207,7 +207,7 @@ end -- -- @param program the program -- @param argv the arguments list --- @param opt the option arguments, e.g. {stdout = filepath/file/pipe, stderr = filepath/file/pipe, envs = {"PATH=xxx", "XXX=yyy"}}) +-- @param opt the option arguments, e.g. {stdout = filepath/file/pipe, stderr = filepath/file/pipe, envs = {"PATH=xxx", "XXX=yyy"}}) -- -- @return the subprocess -- |
