Sha256: 8c78310721aa26aa534aa6f5d2f2fd0c17a059216c5b9eb3d93b20d692859094
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true require "sod" module Pragmater module CLI module Actions # Stores pragma comments. class Comment < Sod::Action include Import[:settings] description "Set pragma comments." on %w[-c --comments], argument: "[a,b,c]" default { Container[:settings].comments } def call(comments = nil) = settings.comments = Array(comments || default) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pragmater-15.1.0 | lib/pragmater/cli/actions/comment.rb |
pragmater-15.0.0 | lib/pragmater/cli/actions/comment.rb |