Skip to content

Commit e6d1dfa

Browse files
nwolversonpaf31
authored andcommitted
Restore update command (#46)
1 parent 26ea46e commit e6d1dfa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/Main.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ initialize setAndSource = do
237237
packageNameFromPWD =
238238
either (const untitledPackageName) id . mkPackageName
239239

240+
update :: IO ()
241+
update = do
242+
pkg <- readPackageFile
243+
updateImpl pkg
244+
echoT "Update complete"
245+
240246
install :: String -> IO ()
241247
install pkgName' = do
242248
pkg <- readPackageFile
@@ -462,6 +468,9 @@ main = do
462468
<*> optional (fromString <$> source))
463469
Opts.<**> Opts.helper)
464470
(Opts.progDesc "Initialize a new package"))
471+
, Opts.command "update"
472+
(Opts.info (pure update)
473+
(Opts.progDesc "Update dependencies"))
465474
, Opts.command "uninstall"
466475
(Opts.info (uninstall <$> pkg Opts.<**> Opts.helper)
467476
(Opts.progDesc "Uninstall the named package"))

0 commit comments

Comments
 (0)