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

Version Path
ememo-0.2.1 lib/memo/cli/command/today.rb
ememo-0.1.8 lib/memo/cli/command/today.rb
ememo-0.1.7 lib/memo/cli/command/today.rb
ememo-0.1.6 lib/memo/cli/command/today.rb
ememo-0.1.5 lib/memo/cli/command/today.rb
ememo-0.1.4 lib/memo/cli/command/today.rb
ememo-0.1.3 lib/memo/cli/command/today.rb
ememo-0.1.2 lib/memo/cli/command/today.rb