From fcdfb62d0f9ca9773da57e20286b8623c2c866f5 Mon Sep 17 00:00:00 2001 From: mms Date: Mon, 25 Nov 2024 00:11:05 +0100 Subject: feat: mailig list rule --- bin/chotto | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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) -- cgit v1.2.3