Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lsstory supports --development and --design, to restrict to only stor…

…ies that need dev or design.
  • Loading branch information...
commit 049f8b8fb16220459445f4e2d4c67a32ddfc2034 1 parent 75ed04c
@mike-burns authored
Showing with 24 additions and 2 deletions.
  1. +18 −0 LsStory.hs
  2. +6 −2 README.md
View
18 LsStory.hs
@@ -72,6 +72,7 @@ buildFilters args = filters <*> [args]
,estimationFilter
,assignmentFilter
,stateFilter
+ ,neededFilter
,deletionsFilter
]
@@ -134,6 +135,13 @@ stateFilter args =
then map fst $ filter snd $ zip allStates stateBits
else allStates
+neededFilter args
+ | showDesignNeeded args && showDevelopmentNeeded args =
+ filter (\story -> storyDesignNeeded story && storyDevelopmentNeeded story)
+ | showDesignNeeded args = filter storyDesignNeeded
+ | showDevelopmentNeeded args = filter storyDevelopmentNeeded
+ | otherwise = id
+
deletionsFilter args = filter (not . storyDeleted)
data LsStoryArg = LsStoryArg {
@@ -146,6 +154,8 @@ data LsStoryArg = LsStoryArg {
,showUnestimated :: Bool
,showAssigned :: [String]
,showUnassigned :: Bool
+ ,showDesignNeeded :: Bool
+ ,showDevelopmentNeeded :: Bool
,showUnstarted :: Bool
,showStarted :: Bool
@@ -196,6 +206,14 @@ lsStoryArgDefinition = LsStoryArg {
&= explicit
&= name "assigned"
&= help "Stories assigned to the named person"
+ ,showDesignNeeded = def
+ &= explicit
+ &= name "design"
+ &= help "Stories that need design"
+ ,showDevelopmentNeeded = def
+ &= explicit
+ &= name "development"
+ &= help "Stories that need development"
,showUnstarted = def
&= explicit
&= name "unstarted"
View
8 README.md
@@ -21,12 +21,16 @@ Done:
% lsstory --profile thoughtbot-support --project "Trajectory"
% lsstory --completed
-To do:
-
% lsstory --development
% lsstory --design
% lsstory --design --development
+To do:
+
+ % lsstory --all-iterations
+ % lsstory --current-iteration
+ % lsstory --iteration 2012-01-02
+
% lsidea
% lsmilestone
% lsmilestone --unstarted --next
Please sign in to comment.
Something went wrong with that request. Please try again.