blob: 39832856b25ef82a909ad59086413f4eaa126f3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
local doc = require 'cli.doc'
local client = require 'client'
local furi = require 'file-uri'
local lang = require 'language'
local ws = require 'workspace'
local files = require 'files'
---@async
return function (args)
local outputPath = args[1] and furi.decode(args[1]) or LOGPATH
local docPath, mdPath = doc.makeDoc(outputPath)
client.showMessage('Info', lang.script('CLI_DOC_DONE'
, ('[%s](%s)'):format(files.normalize(docPath), furi.encode(docPath))
, ('[%s](%s)'):format(files.normalize(mdPath), furi.encode(mdPath))
))
end
|