UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
yargs.ts
9 lines
(7 loc)
•
281 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{ getHumanName }
from
'./filesystem'
export
function
getCommandName
(
filename
:
string
,
args
:
string
[] = []
) {
const
cmdName =
getHumanName
(filename)
const
argNames = args.
map
(
arg
=>
`<
${arg}
>`
).
join
(
' '
)
const
names = [cmdName, ...argNames]
return
names.
join
(
' '
) }