Sha256: 93516f6ce3b5d242de11b658e04526ea19470b1dd9cd400c559b6378044e271a
Contents?: true
Size: 454 Bytes
Versions: 8
Compression:
Stored size: 454 Bytes
Contents
module Memo class Cli module Command class Today require "date" def initialize( _, os: Memo::OS.new ) @os = os @config = Memo::Config.new @today = Memo::Today.new end def call @os.exec "mkdir -p #{@config.root}/#{@today.dir}" @os.exec "#{@config.editor} #{@config.root}/#{@today.fullpath}" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems