Changeset 61:8fe64b5932b9 in stamper for stamper/cli.py


Ignore:
Timestamp:
Feb 13, 2015, 5:35:18 PM (9 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
  • stamper/cli.py

    r55 r61  
    1717    parser.add_argument('-t', '--timeline', action="store_true",
    1818                        help='Show a timeline of recorded times')
     19    parser.add_argument('-desc', '--description', action="store",
     20                        help='Filter results by the description in the stamp')
    1921    parser.add_argument('-d', '--delete', action="store", type=int,
    2022                        help='Delete up to n recorded stamps')
Note: See TracChangeset for help on using the changeset viewer.