File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,19 @@ Mercenary.program(:jekyll) do |p|
34
34
end
35
35
end
36
36
37
+ p .command(:build ) do |c |
38
+ c.syntax " jekyll build [options]"
39
+ c.description " Builds your Jekyll site"
40
+
41
+ c.option ' safe' , ' --safe' , ' Run in safe mode'
42
+ c.option ' source' , ' --source DIR' , ' From where to collect the source files'
43
+ c.option ' destination' , ' --dest DIR' , ' To where the compiled files should be written'
44
+
45
+ c.action do |_ , options |
46
+ Jekyll ::Commands ::Build .process(options)
47
+ end
48
+ end
49
+
37
50
p .command(:import ) do |c |
38
51
c.syntax " jekyll import <platform> [options]"
39
52
c.description " Import your old blog to Jekyll"
@@ -51,6 +64,8 @@ Mercenary.program(:jekyll) do |p|
51
64
Jekyll ::Commands ::Import .process(args.first, options)
52
65
end
53
66
end
67
+
68
+ p .default_command(:build )
54
69
end
55
70
```
56
71
You can’t perform that action at this time.
0 commit comments