Sha256: e1617239c623195b2433fd42119e662c0b3d2c1a6afd3bbf2af113a3fc11dc22
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
# @@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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doing-2.1.26 | bin/commands/add_section.rb |