Return to Roc packages
Documentation
SSG
▶
files!
parse_markdown!
write_file!
Types
▶
Path
path_to_str
RelPath
rel_path_to_str
to_rel_path
Args
Files
Cmd
▶
Cmd
Output
new
arg
args
env
envs
clear_envs
output!
status!
exec!
Stdout
▶
Err
line!
write!
Stderr
▶
Err
line!
write!
Env
▶
var!
decode!
dict!
platform!
Locale
▶
get!
all!
Utc
▶
Utc
now!
to_millis_since_epoch
from_millis_since_epoch
to_nanos_since_epoch
from_nanos_since_epoch
delta_as_millis
delta_as_nanos
to_iso_8601
(press
s
)
SSG
.
files!
: Path => Result (List Files) [FilesError Str]
SSG
.
parse_markdown!
: Path => Result Str [ParseError Str]
SSG
.
write_file!
: { output_dir : Path, relpath : RelPath, content : Str } => Result {} [WriteError Str]
Types
.
Path
Types
.
path_to_str
: Path -> Str
Types
.
RelPath
Types
.
rel_path_to_str
: RelPath -> Str
Types
.
to_rel_path
: Str -> RelPath
Types
.
Args
Types
.
Files
Cmd
.
Cmd
Cmd
.
Output
Cmd
.
new
: Str -> Cmd
Cmd
.
arg
: Cmd, Str -> Cmd
Cmd
.
args
: Cmd, List Str -> Cmd
Cmd
.
env
: Cmd, Str, Str -> Cmd
Cmd
.
envs
: Cmd, List ( Str, Str ) -> Cmd
Cmd
.
clear_envs
: Cmd -> Cmd
Cmd
.
output!
: Cmd => Output
Cmd
.
status!
: Cmd => Result I32 [CmdStatusErr InternalIOErr.IOErr]
Cmd
.
exec!
: Str, List Str => Result {} [CmdStatusErr InternalIOErr.IOErr]
Stdout
.
Err
Stdout
.
line!
: Str => Result {} [StdoutErr Err]
Stdout
.
write!
: Str => Result {} [StdoutErr Err]
Stderr
.
Err
Stderr
.
line!
: Str => Result {} [StderrErr Err]
Stderr
.
write!
: Str => Result {} [StderrErr Err]
Env
.
var!
: Str => Result Str [VarNotFound]
Env
.
decode!
: Str => Result val [ VarNotFound, DecodeErr DecodeError ] where val implements Decoding
Env
.
dict!
: {} => Dict Str Str
Env
.
platform!
: {} => { arch : ARCH, os : OS }
Locale
.
get!
: {} => Result Str [NotAvailable]
Locale
.
all!
: {} => List Str
Utc
.
Utc
Utc
.
now!
: {} => Utc
Utc
.
to_millis_since_epoch
: Utc -> I128
Utc
.
from_millis_since_epoch
: I128 -> Utc
Utc
.
to_nanos_since_epoch
: Utc -> I128
Utc
.
from_nanos_since_epoch
: I128 -> Utc
Utc
.
delta_as_millis
: Utc, Utc -> U128
Utc
.
delta_as_nanos
: Utc, Utc -> U128
Utc
.
to_iso_8601
: Utc -> Str
Exposed Modules
LLM docs
SSG
Types
Cmd
Stdout
Stderr
Env
Locale
Utc