Sha256: d4e1b939a77ff610a8136e8c20444f495079d34c09981710eb5adb8323d1e2d4
Contents?: true
Size: 554 Bytes
Versions: 8
Compression:
Stored size: 554 Bytes
Contents
module Memo class Cli module Command class Edit def initialize( options, os: Memo::OS.new ) @options = options @os = os @config = Memo::Config.new end def call filename = @options[0] namespace = @options.namespace file = Memo::File.new(filename, namespace) @os.exec "mkdir -p #{@config.root}/#{file.dir}" @os.exec "#{@config.editor} #{@config.root}/#{file.fullpath}" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems