Sha256: 6636063058437525b8b9b648dda0a4764357ecd63230fab74d38f2434fa869d0
Contents?: true
Size: 360 Bytes
Versions: 7
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: true desc "Opens the `friends.md` file in $EDITOR for manual editing" command :edit do |edit| edit.action do |global_options| editor = ENV["EDITOR"] || "vim" filename = global_options[:filename] puts "Opening \"#{filename}\" in #{editor}" unless global_options[:quiet] Kernel.exec "#{editor} #{filename}" end end
Version data entries
7 entries across 7 versions & 1 rubygems