]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands: Update CLI docs with the important -u flag in hugo mod get
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 20 Sep 2023 16:01:52 +0000 (18:01 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 20 Sep 2023 16:01:52 +0000 (18:01 +0200)
commands/mod.go

index 764e12d41eccd7e89f733e4b6ac8b397a3aa418a..20b9d396079603ee37eb64745b036b94da42defa 100644 (file)
@@ -211,7 +211,12 @@ Install a specific version:
 
     hugo mod get github.com/gohugoio/testshortcodes@v0.3.0
 
-Install the latest versions of all module dependencies:
+Install the latest versions of all direct module dependencies:
+
+    hugo mod get
+    hugo mod get ./... (recursive)
+
+Install the latest versions of all module dependencies (direct and indirect):
 
     hugo mod get -u
     hugo mod get -u ./... (recursive)
@@ -281,7 +286,6 @@ Run "go help get" for more information. All flags available for "go get" is also
                        npmCommand,
                },
        }
-
 }
 
 type modCommands struct {
@@ -303,7 +307,7 @@ func (c *modCommands) Run(ctx context.Context, cd *simplecobra.Commandeer, args
        if err != nil {
                return err
        }
-       //config := conf.configs.Base
+       // config := conf.configs.Base
 
        return nil
 }