Lossless MoonBit manifest queries and edits
moon add unmbt/moon-manifestimport "unmbt/moon-manifest"let document = @manifest.parse(
@manifest.Kind::Mod,
"name = \"example/app\"\nversion = \"0.1.0\"\n",
)
let name = document.module_name()
let updated = document.replace_string("version", "0.2.0")pub struct Document {
kind : Kind
path : String
source : Bytes
ast : Ast
diagnostics : Array[Diagnostic]
} derive(Debug)Install
Download zipLossless MoonBit manifest queries and edits