Sha256: 191729d8205c559db6018b8e6b46b77b9a165b81bfbaff831aca416177528249
Contents?: true
Size: 496 Bytes
Versions: 7
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true # @@add_section desc 'Add a new section to the "doing" file' arg_name 'SECTION_NAME' command :add_section do |c| c.example 'doing add_section Ideas', desc: 'Add a section called Ideas to the doing file' c.action do |_global_options, _options, args| raise InvalidArgument, "Section #{args[0]} already exists" if @wwid.sections.include?(args[0]) @wwid.content.add_section(args.join(' ').cap_first, log: true) @wwid.write(@wwid.doing_file) end end
Version data entries
7 entries across 7 versions & 1 rubygems