Handbook
Glossary
parse-by-filename ( string path -- object )
Vocabulary
aws
Inputs
string
an
object
path
an
object
Outputs
object
an
object
Definition
USING:
combinators
ini-file
io.pathnames
json
kernel
;
IN:
aws
:
parse-by-filename
( string path -- object )
file-name
{
{
[
dup
"config"
=
]
[
drop
string>ini
]
}
{
[
dup
"credentials"
=
]
[
drop
string>ini
]
}
{
[
dup
file-extension
"json"
=
]
[
drop
json>
]
}
[
drop
]
}
cond
;