-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix formatting and formatting build tasks
- Loading branch information
Showing
41 changed files
with
1,182 additions
and
1,001 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
module MessagePrompts | ||
|
||
let prompt (msg:string) = | ||
let prompt (msg: string) = | ||
System.Console.Write(msg) | ||
|
||
System.Console.ReadLine().Trim() | ||
|> function | "" -> None | s -> Some s | ||
|> Option.map (fun s -> s.Replace ("\"","\\\"")) | ||
|> function | ||
| "" -> None | ||
| s -> Some s | ||
|> Option.map (fun s -> s.Replace("\"", "\\\"")) | ||
|
||
let rec promptYesNo msg = | ||
match prompt (sprintf "%s [Yn]: " msg) with | ||
| Some "Y" | Some "y" -> true | ||
| Some "N" | Some "n" -> false | ||
| _ -> System.Console.WriteLine("Sorry, invalid answer"); promptYesNo msg | ||
| Some "Y" | ||
| Some "y" -> true | ||
| Some "N" | ||
| Some "n" -> false | ||
| _ -> | ||
System.Console.WriteLine("Sorry, invalid answer") | ||
promptYesNo msg | ||
|
||
let releaseMsg = """This will stage all uncommitted changes, push them to the origin and bump the release version to the latest number in the RELEASE_NOTES.md file. | ||
let releaseMsg = | ||
"""This will stage all uncommitted changes, push them to the origin and bump the release version to the latest number in the RELEASE_NOTES.md file. | ||
Do you want to continue?""" | ||
|
||
let releaseDocsMsg = """This will push the docs to gh-pages. Remember building the docs prior to this. Do you want to continue?""" | ||
let releaseDocsMsg = | ||
"""This will push the docs to gh-pages. Remember building the docs prior to this. Do you want to continue?""" |
Oops, something went wrong.