aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-25 00:11:05 +0100
committermms <git@sapka.me>2024-11-25 00:11:05 +0100
commitfcdfb62d0f9ca9773da57e20286b8623c2c866f5 (patch)
treee47b0d22548261f8690c3802445eb2ddab062c48 /bin
parentc2623f1aa3638c988026b28f6a4131df6c61e0c6 (diff)
feat: mailig list rule
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chotto4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/chotto b/bin/chotto
index 1998af5..0d6116f 100755
--- a/bin/chotto
+++ b/bin/chotto
@@ -7,6 +7,10 @@ require_relative '../lib/chotto'
CONFIG_FILEPATH = 'chotto/config.rb'
XDG_HOME = ENV.fetch('XDG_CONFIG_HOME', "#{Dir.home}/.config")
def start_chotto(options)
+ Chotto.configure do
+ config.only_new = options.fetch(:only_new, false)
+ end
+
config_file = File.read("#{XDG_HOME}/#{CONFIG_FILEPATH}")
instance_eval(config_file)
eval_rules(options)