We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ea46e commit e6d1dfaCopy full SHA for e6d1dfa
app/Main.hs
@@ -237,6 +237,12 @@ initialize setAndSource = do
237
packageNameFromPWD =
238
either (const untitledPackageName) id . mkPackageName
239
240
+update :: IO ()
241
+update = do
242
+ pkg <- readPackageFile
243
+ updateImpl pkg
244
+ echoT "Update complete"
245
+
246
install :: String -> IO ()
247
install pkgName' = do
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"))
0 commit comments