From a776d9fb6f4be15e5288bf2403818cba78361aed Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Wed, 26 Nov 2014 00:28:35 +0100 Subject: [PATCH] Implement git adapter CLI flag. --- README.md | 1 + bin/gollum | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 383aff3d..c3515285 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ Options: --host [HOST] Hostname or IP address to listen on (default 0.0.0.0). --version Display current version. --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. --css Inject custom css. Uses custom.css from root repository --js Inject custom js. Uses custom.js from root repository diff --git a/bin/gollum b/bin/gollum index 330405b7..9a5f32cc 100755 --- a/bin/gollum +++ b/bin/gollum @@ -45,6 +45,10 @@ opts = OptionParser.new do |opts| options['config'] = config 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 options['irb'] = true end