Add Decodal CLI smoke example
This commit is contained in:
parent
c33c484bac
commit
fead194ba6
13
examples/basic.dcdl
Normal file
13
examples/basic.dcdl
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
let
|
||||||
|
MyConfig = {
|
||||||
|
host = String;
|
||||||
|
port = Int & > 443 default 8080;
|
||||||
|
feature.enable = Bool default true;
|
||||||
|
};
|
||||||
|
mkConfig = (cfg: MyConfig) => cfg;
|
||||||
|
in
|
||||||
|
mkConfig({
|
||||||
|
host = "127.0.0.1";
|
||||||
|
port = 8000;
|
||||||
|
feature.enable = false;
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue
Block a user