discourse/script
Ryan Mulligan 6c2f66124f regex remapping: update usage and add help description.
Here is a shell session showing what the new documenation looks like:

vagrant@discourse:~/vagrant$ bundle exec ruby ./script/discourse remap
ERROR: "discourse remap" was called with no arguments
Usage: "discourse remap [--global,--regex] FROM TO"

vagrant@discourse:~/vagrant$ bundle exec ruby ./script/discourse help remap
Usage:
  discourse remap [--global,--regex] FROM TO

Options:
      [--global], [--no-global]
      [--regex], [--no-regex]
  v, [--verbose=VERBOSE]

Description:
  Replace a string sequence FROM with TO across all tables.

  With --global option, the remapping is run on ***ALL*** databases. Instead of just running on the current database, run on every database on this machine. This option is useful for multi-site setups.

  With --regex option, use PostgreSQL function regexp_replace to do the remapping. Enabling this interprets FROM as a PostgreSQL regular expression. TO can contain references to captures in the FROM match. See the "Regular Expression
  Details" section and "regexp_replace" documentation in the PostgreSQL manual for more details.

  Examples:

  discourse remap talk.foo.com talk.bar.com # renaming a Discourse domain name

  discourse remap --regex "[/?color(=[^]]*)*]" "" # removing "color" bbcodes
2017-01-30 14:27:45 -08:00
..
import_scripts FIX: Use the username scrubber when generating the emails 2017-01-18 14:23:23 -05:00
alice.txt more progress towards live unread and new counts, unread message implemented, still to implement delete messages 2013-05-30 16:49:57 +10:00
bench.rb Don't look for external facts when benchmarking 2016-09-21 13:15:58 -07:00
check_forking.rb improve test 2016-11-02 22:19:16 +11:00
diff_heaps.rb diff heaps used for memory leak detection 2014-02-17 10:44:37 +11:00
discourse regex remapping: update usage and add help description. 2017-01-30 14:27:45 -08:00
docker_test.rb Refactor: split out update process from docker test 2014-06-20 09:26:44 +10:00
measure.rb typo correction 2015-03-04 19:31:55 +05:30
memstats.rb Mark all files with a shebang line as executable 2015-05-12 13:21:32 +02:00
micro_bench.rb micro bench template 2014-12-04 09:31:04 +11:00
osx_dev Update rvm install command 2014-05-27 19:15:56 -05:00
profile_db_generator.rb FIX: official benchmark crashing while populating db 2014-11-11 10:28:17 +11:00
pull_translations.rb Always use --force when pulling translations from Transifex 2016-08-12 22:12:03 +02:00
rails turns out I should not have removed 2013-05-09 19:48:10 +10:00
redis_memory.rb simple redis memory analysis script 2015-07-10 09:00:01 +10:00
require_profiler.rb add descriptive comment 2013-07-16 15:44:38 +10:00
test_email_settings.rb Mark all files with a shebang line as executable 2015-05-12 13:21:32 +02:00
test_mem.rb memory profiling script 2013-11-28 12:40:10 +11:00
user_simulator.rb add a tombstone for extra safety 2013-11-27 22:05:11 +01:00
version_bump.rb Mark all files with a shebang line as executable 2015-05-12 13:21:32 +02:00