-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGhPages.fs
More file actions
62 lines (59 loc) · 2.18 KB
/
GhPages.fs
File metadata and controls
62 lines (59 loc) · 2.18 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module EasyBuild.Tools.GhPages
open SimpleExec
open BlackFox.CommandLine
type GhPages =
static member run
// begin-snippet: GhPages.run
(
?dist: string,
?src: string,
?branch: string,
?dest: string,
?add: bool,
?silent: bool,
?message: string,
?tag: string,
?git: string,
?dotfiles: bool,
?nojekyll: bool,
?cname: string,
?repo: string,
?depth: int,
?remote: string,
?user: string,
?remove: string,
?noPush: bool,
?noHistory: bool,
?beforeAdd: string,
?workingDirectory: string
)
: unit
// end-snippet
=
Command.Run(
"npx",
CmdLine.empty
|> CmdLine.appendRaw "gh-pages"
|> CmdLine.appendPrefixIfSome "--dist" dist
|> CmdLine.appendPrefixIfSome "--src" src
|> CmdLine.appendPrefixIfSome "--branch" branch
|> CmdLine.appendPrefixIfSome "--dest" dest
|> CmdLine.apprendFlagIfSomeTrue "--add" add
|> CmdLine.apprendFlagIfSomeTrue "--silent" silent
|> CmdLine.appendPrefixIfSome "--message" message
|> CmdLine.appendPrefixIfSome "--tag" tag
|> CmdLine.appendPrefixIfSome "--git" git
|> CmdLine.apprendFlagIfSomeTrue "--dotfiles" dotfiles
|> CmdLine.apprendFlagIfSomeTrue "--nojekyll" nojekyll
|> CmdLine.appendPrefixIfSome "--cname" cname
|> CmdLine.appendPrefixIfSome "--repo" repo
|> CmdLine.appendPrefixIfSome "--depth" (depth |> Option.map string)
|> CmdLine.appendPrefixIfSome "--remote" remote
|> CmdLine.appendPrefixIfSome "--user" user
|> CmdLine.appendPrefixIfSome "--remove" remove
|> CmdLine.apprendFlagIfSomeTrue "--no-push" noPush
|> CmdLine.apprendFlagIfSomeTrue "--no-history" noHistory
|> CmdLine.appendPrefixIfSome "--before-add" beforeAdd
|> CmdLine.toString,
?workingDirectory = workingDirectory
)