Changeset 61:8fe64b5932b9 in stamper for bin/stamps


Ignore:
Timestamp:
Feb 13, 2015, 5:35:18 PM (10 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Filter stamps by text in their description/action.

Examples:

  • Returns all stamps for customer A that contain the word "updated":

stamps -t -desc updated A

  • Returns the sum of times for the work on the release of a project for customer B (if you added RELEASE as a text on those stamps):

stamps -vs -desc RELEASE B

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/stamps

    r55 r61  
    2121    # Call the proper methods, based on the given parameters
    2222    if args.timeline:
    23         s.timeline(args.customer, args.filter)
     23        s.timeline(args.customer, args.filter, args.description)
    2424    elif args.delete:
    2525        s.remove_stamps(args.delete)
    2626    elif args.graph:
    27         s.graph_stamps(args.customer, args.filter)
     27        s.graph_stamps(args.customer, args.filter, args.description)
    2828    elif args.import_file:
    2929        s.import_stamps(args.import_file)
    3030    elif args.push:
    31         s.push_stamps(args.customer, args.filter)
     31        s.push_stamps(args.customer, args.filter, args.description)
    3232    else:
    33         s.show_stamps(args.customer, args.filter, args.verbose, args.sum)
     33        s.show_stamps(args.customer, args.filter, args.verbose, args.sum,
     34                      args.description)
Note: See TracChangeset for help on using the changeset viewer.