summaryrefslogtreecommitdiff
path: root/src/Command/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-07-30 10:42:38 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-07-30 10:42:38 +0200
commitccce704296792fb3efc7590e70b05cff52532258 (patch)
tree881d680a5e0a76bc88b602b03b0f13497789e23f /src/Command/Run.hs
parent3b025f4c1c82e3ce5d4b6017228af32aee9327ac (diff)
Help for subcommands
Diffstat (limited to 'src/Command/Run.hs')
-rw-r--r--src/Command/Run.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Command/Run.hs b/src/Command/Run.hs
index 28b35c3..677f8f1 100644
--- a/src/Command/Run.hs
+++ b/src/Command/Run.hs
@@ -27,6 +27,15 @@ instance Command RunCommand where
type CommandArguments RunCommand = Maybe Text
+ commandUsage _ = T.pack $ unlines $
+ [ "Usage: minici run"
+ , " run jobs for commits on current branch not yet in upstream branch"
+ , " or: minici run <ref>"
+ , " run jobs for commits on <ref> not yet in its upstream ref"
+ , " or: minici run <commit>..<commit>"
+ , " run jobs for commits in given range"
+ ]
+
commandInit _ _ = RunCommand . fromMaybe "HEAD"
commandExec = cmdRun