File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,12 @@ initialize setAndSource = do
237
237
packageNameFromPWD =
238
238
either (const untitledPackageName) id . mkPackageName
239
239
240
+ update :: IO ()
241
+ update = do
242
+ pkg <- readPackageFile
243
+ updateImpl pkg
244
+ echoT " Update complete"
245
+
240
246
install :: String -> IO ()
241
247
install pkgName' = do
242
248
pkg <- readPackageFile
@@ -462,6 +468,9 @@ main = do
462
468
<*> optional (fromString <$> source))
463
469
Opts. <**> Opts. helper)
464
470
(Opts. progDesc " Initialize a new package" ))
471
+ , Opts. command " update"
472
+ (Opts. info (pure update)
473
+ (Opts. progDesc " Update dependencies" ))
465
474
, Opts. command " uninstall"
466
475
(Opts. info (uninstall <$> pkg Opts. <**> Opts. helper)
467
476
(Opts. progDesc " Uninstall the named package" ))
You can’t perform that action at this time.
0 commit comments