mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Add description for rake tasks
You can see the descriptions by running `rake --tasks`.
This commit is contained in:
@ -35,6 +35,7 @@ end
|
|||||||
|
|
||||||
Liquid::Template.register_filter(ExtraFilters)
|
Liquid::Template.register_filter(ExtraFilters)
|
||||||
|
|
||||||
|
desc "Serve a live view of the website on http://localhost:5000/jq/"
|
||||||
task :serve do
|
task :serve do
|
||||||
begin
|
begin
|
||||||
Bonsai.log "Press Control+C to quit"
|
Bonsai.log "Press Control+C to quit"
|
||||||
@ -65,6 +66,7 @@ task :serve do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Build the website from the bonsai sources"
|
||||||
task :build do
|
task :build do
|
||||||
Bonsai.root_dir = Dir.pwd
|
Bonsai.root_dir = Dir.pwd
|
||||||
Bonsai::Exporter.publish!
|
Bonsai::Exporter.publish!
|
||||||
@ -74,6 +76,7 @@ def load_manual
|
|||||||
YAML::load(File.open("content/3.manual/manual.yml"))
|
YAML::load(File.open("content/3.manual/manual.yml"))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Build the manpage from the bonsai source of the manual"
|
||||||
task :manpage do
|
task :manpage do
|
||||||
Tempfile.open "manpage" do |f|
|
Tempfile.open "manpage" do |f|
|
||||||
manual = load_manual
|
manual = load_manual
|
||||||
@ -103,6 +106,7 @@ task :manpage do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Collect jq unit test cases from the bonsai source of the manual"
|
||||||
task :mantests do
|
task :mantests do
|
||||||
load_manual['sections'].each do |section|
|
load_manual['sections'].each do |section|
|
||||||
(section['entries'] || []).each do |entry|
|
(section['entries'] || []).each do |entry|
|
||||||
|
Reference in New Issue
Block a user