Skip to content

Commit 92c4482

Browse files
committed
Add 'default_command' to the README.
1 parent e082759 commit 92c4482

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ Mercenary.program(:jekyll) do |p|
3434
end
3535
end
3636

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+
3750
p.command(:import) do |c|
3851
c.syntax "jekyll import <platform> [options]"
3952
c.description "Import your old blog to Jekyll"
@@ -51,6 +64,8 @@ Mercenary.program(:jekyll) do |p|
5164
Jekyll::Commands::Import.process(args.first, options)
5265
end
5366
end
67+
68+
p.default_command(:build)
5469
end
5570
```
5671

0 commit comments

Comments
 (0)