support multiple commands in sesh

This commit is contained in:
2026-02-03 20:25:27 +01:00
parent 42c61803a2
commit 579ad0281c
53 changed files with 15232 additions and 11516 deletions
+12
View File
@@ -0,0 +1,12 @@
package parser
// Option represents parser's option.
type Option func(p *parser)
// AllowDuplicateMapKey allow the use of keys with the same name in the same map,
// but by default, this is not permitted.
func AllowDuplicateMapKey() Option {
return func(p *parser) {
p.allowDuplicateMapKey = true
}
}