Merge pull request #900 from repotag/adapter-flag
Implement git adapter CLI flag.
This commit is contained in:
@@ -100,6 +100,7 @@ Options:
|
|||||||
--host [HOST] Hostname or IP address to listen on (default 0.0.0.0).
|
--host [HOST] Hostname or IP address to listen on (default 0.0.0.0).
|
||||||
--version Display current version.
|
--version Display current version.
|
||||||
--config [CONFIG] Path to additional configuration file
|
--config [CONFIG] Path to additional configuration file
|
||||||
|
--adapter [ADAPTER] Git adapter to use in the backend. Defaults to grit.
|
||||||
--irb Start an irb process with gollum loaded for the current wiki.
|
--irb Start an irb process with gollum loaded for the current wiki.
|
||||||
--css Inject custom css. Uses custom.css from root repository
|
--css Inject custom css. Uses custom.css from root repository
|
||||||
--js Inject custom js. Uses custom.js from root repository
|
--js Inject custom js. Uses custom.js from root repository
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ opts = OptionParser.new do |opts|
|
|||||||
options['config'] = config
|
options['config'] = config
|
||||||
end
|
end
|
||||||
|
|
||||||
|
opts.on("--adapter [ADAPTER]", "Git adapter to use in the backend. Defaults to grit.") do |adapter|
|
||||||
|
Gollum::GIT_ADAPTER = adapter
|
||||||
|
end
|
||||||
|
|
||||||
opts.on("--irb", "Start an irb process with gollum loaded for the current wiki.") do
|
opts.on("--irb", "Start an irb process with gollum loaded for the current wiki.") do
|
||||||
options['irb'] = true
|
options['irb'] = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user