Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 490 Bytes

File metadata and controls

23 lines (19 loc) · 490 Bytes

scope

Selects keys in a wasi:config/store matching a scope prefix based on the content of a 'scope' import which mimics wasi:config/store. The scope value is removed from the resulting keys, and keys not matching the scope prefix are ignored.

Config values:

greeting.casual: hey
greeting.formal: hello
greeting.hawaiian: aloha
not.a.greeting: is ignored

Scope values:

prefix: greeting.

Resulting values:

casual: hey
formal: hello
hawaiian: aloha