package dune-release
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val confirm : question:('a, unit) Logs.msgf -> yes:bool -> bool
Promtps the user for confirmation. confirm ~question ~yes
uses the message formatting function question
to format and log a message with the app level and wait for a yes or no answer from the user. Returns true
for yes. Defaults to yes if the user just press enter. If yes
then just skip the prompt and returns true
. E.g. confirm ~question:(fun l -> l "Do you want some %a?" Fmt.(styled `Bold string) "coffee")
val confirm_or_abort :
question:('a, unit) Logs.msgf ->
yes:bool ->
(unit, Rresult.R.msg) result
Same as confirm
but returns Ok ()
for yes and Error (`Msg "Aborting on user demand")
for no
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>