diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-07-30 10:42:38 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-07-30 10:42:38 +0200 |
commit | ccce704296792fb3efc7590e70b05cff52532258 (patch) | |
tree | 881d680a5e0a76bc88b602b03b0f13497789e23f /src/Command | |
parent | 3b025f4c1c82e3ce5d4b6017228af32aee9327ac (diff) |
Help for subcommands
Diffstat (limited to 'src/Command')
-rw-r--r-- | src/Command/Run.hs | 9 |
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 |