summaryrefslogtreecommitdiff
path: root/Command/Schedule.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Schedule.hs')
-rw-r--r--Command/Schedule.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Command/Schedule.hs b/Command/Schedule.hs
index 91ef2c138..266208f9a 100644
--- a/Command/Schedule.hs
+++ b/Command/Schedule.hs
@@ -17,11 +17,12 @@ import Types.Messages
import qualified Data.Set as S
-cmd :: [Command]
-cmd = [command "schedule" (paramPair paramRemote (paramOptional paramExpression)) seek
- SectionSetup "get or set scheduled jobs"]
+cmd :: Command
+cmd = command "schedule" SectionSetup "get or set scheduled jobs"
+ (paramPair paramRemote (paramOptional paramExpression))
+ (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withWords start
start :: [String] -> CommandStart