support cmdnorepo actions, also using getopt-applicative there
This commit is contained in:
parent
6e5c1f8db3
commit
92d8f80bff
10 changed files with 54 additions and 68 deletions
|
@ -20,10 +20,11 @@ import Assistant.Install
|
|||
import System.Environment
|
||||
|
||||
cmd :: Command
|
||||
cmd = noRepo checkNoRepoOpts $ dontCheck repoExists $ withOptions options $
|
||||
notBareRepo $ command "assistant" SectionCommon
|
||||
"automatically sync changes"
|
||||
paramNothing (withParams seek)
|
||||
cmd = dontCheck repoExists $ withOptions options $ notBareRepo $
|
||||
noRepo (withParams checkNoRepoOpts) $
|
||||
command "assistant" SectionCommon
|
||||
"automatically sync changes"
|
||||
paramNothing (withParams seek)
|
||||
|
||||
options :: [Option]
|
||||
options =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue