lumesh 0.18.2

a lighting shell ⚡ bash alternative
Documentation

let libs = [tops, about,boolean,bytes, console,filesize,from, fs,hmap,into, list,log,map, math,rand,regex, set,string,sys, table,time,ui,]
fs.rm /tmp/full/ ?.
fs.mkdir /tmp/full
# fs.mkdir /tmp/lite

for lib in libs {
	let head = `---
title: 内置库 {lib}
date: {time.now()}
---
	`
	if lib == tops {
			help $lib | .strip_ansi() | regex.replace_all(g'(?m)^([a-z].+)','- `$1`') | `{head}\n## ` + _ >> `/tmp/full/{lib}.md`
			continue
	}

	help $lib | .strip_ansi() | .replace(`{lib}.`,'- ') | regex.replace_all(g'(?m)^- ([a-z].+)','- `$1`') | `{head}\n## ` + _ >> `/tmp/full/{lib}.md`
	# help $lib | .strip_ansi() | .replace(`{lib}.`,'') | .lines() | .filter(x -> !x.starts_with("\t")) | .join("\n") | `{head}\n## ` + _ >> `/tmp/lite/{lib}.md`
}