Sha256: 36a5ddaeabdecd9171d4b6d760cec0927238e360968df7d068119e78cbdd767b

Contents?: true

Size: 227 Bytes

Versions: 1

Compression:

Stored size: 227 Bytes

Contents

module Ncn
  module Command
    class Create < Base
      def perform
        note = repository.create(tags: params.tags)
        Draft.new(ids: [note.id], repository: repository).open_with(&Editor)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ncn-0.1.0 lib/ncn/command/create.rb