Sha256: 5d6e2018ced5c509789b2e965a0a6e203cd7c2f7907ecffdf932eb5eff69eb1e
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
# @@yesterday desc 'List entries from yesterday' long_desc 'Show only entries with start times within the previous 24 hour period. Use --before, --after, and --from to limit to time spans within the day.' command :yesterday do |c| c.example 'doing yesterday', desc: 'List all entries from the previous day' c.example 'doing yesterday --after 8am --before 5pm', desc: 'List entries from the previous day between 8am and 5pm' c.example 'doing yesterday --totals', desc: 'List entries from previous day, including tag timers' c.desc 'Specify a section' c.arg_name 'NAME' c.flag %i[s section], default_value: 'All' add_options(:output_template, c, default_template: 'today') add_options(:time_filter, c) add_options(:time_display, c) c.action do |_global_options, options, _args| raise InvalidPlugin.new('output', options[:output]) if options[:output] && options[:output] !~ Doing::Plugins.plugin_regex(type: :export) options[:sort_tags] = options[:tag_sort] opt = options.clone opt[:order] = Doing.setting(['templates', options[:config_template], 'order']) Doing::Pager.page @wwid.yesterday(options[:section], options[:times], options[:output], opt).chomp end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
doing-2.1.42 | bin/commands/yesterday.rb |
doing-2.1.41 | bin/commands/yesterday.rb |
doing-2.1.40 | bin/commands/yesterday.rb |