Lua 调用ClearTool获取某文件最新的注释内容

local cmdStr= [[cleartool describe -fmt "%c"  "D:\DEV_FEATURE\wei\test1.cpp"]]
      local f = assert(io.popen(cmdStr))
      local str = assert(f:read(‘*a’))
      f:close()

print(str)

发表评论