Skip to content

Commit

Permalink
Restore update command (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolverson authored and paf31 committed Aug 1, 2017
1 parent 26ea46e commit e6d1dfa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ initialize setAndSource = do
packageNameFromPWD =
either (const untitledPackageName) id . mkPackageName

update :: IO ()
update = do
pkg <- readPackageFile
updateImpl pkg
echoT "Update complete"

install :: String -> IO ()
install pkgName' = do
pkg <- readPackageFile
Expand Down Expand Up @@ -462,6 +468,9 @@ main = do
<*> optional (fromString <$> source))
Opts.<**> Opts.helper)
(Opts.progDesc "Initialize a new package"))
, Opts.command "update"
(Opts.info (pure update)
(Opts.progDesc "Update dependencies"))
, Opts.command "uninstall"
(Opts.info (uninstall <$> pkg Opts.<**> Opts.helper)
(Opts.progDesc "Uninstall the named package"))
Expand Down

0 comments on commit e6d1dfa

Please sign in to comment.