FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Plotly.NET/build/MessagePrompts.fs at dev · plotly/Plotly.NET · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
plotly
/
Plotly.NET
Public
Notifications
You must be signed in to change notification settings
Fork
99
Star
859
Code
Issues
42
Pull requests
3
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Plotly.NET
/
build
/
MessagePrompts.fs
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (22 loc) · 817 Bytes
Breadcrumbs
Plotly.NET
/
build
/
MessagePrompts.fs
Copy path
File metadata and controls
27 lines (22 loc) · 817 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
modul
e
MessagePrompt
s
let
prompt
(
msg
:
string
)
=
System.Console.Write
(
msg
)
System.Console.ReadLine
()
.Trim
()
|>
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
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?
"""
Back
|
FazBrowse Home
|
New Git URL