Skip to content

Commit

Permalink
chore: trim trailing whitespace off generated CLI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 14, 2021
1 parent cce449e commit bbeaaf3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions script/update-cli-usage-in-readme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ def reformat_docs(generated_thor_docs)
else
lines
end
# line
end.flatten.join("\n").gsub("/go/", "/").gsub(File.basename(__FILE__), "pact-broker")
end
.flatten
.collect { | line | line.gsub(/\s+$/, "") }
.join("\n")
.gsub("/go/", "/")
.gsub(File.basename(__FILE__), "pact-broker")
end

def update_readme(usage_docs)
Expand Down

0 comments on commit bbeaaf3

Please sign in to comment.