From edb47d1dbdacc439ddb1fae7ce7ffa1b4b5b7738 Mon Sep 17 00:00:00 2001 From: mms Date: Thu, 28 Nov 2024 12:41:29 +0100 Subject: fix: properly set the executable in gemspec bump required respec --- bin/chotto | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 bin/chotto (limited to 'bin') diff --git a/bin/chotto b/bin/chotto deleted file mode 100755 index 0d6116f..0000000 --- a/bin/chotto +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require 'optparse' -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) -end - -options = {} -OptionParser.new do |opts| - opts.banner = 'Usage: chotto [options]' - - opts.on('-n', '--new', 'Run only for new mesages') do |v| - options[:only_new] = v - end -end.parse! - -start_chotto(options) -- cgit v1.2.3