diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-09-20 18:01:52 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-09-20 18:01:52 +0200 |
commit | 275c0acbf6095adbe685f25e6cf250d91343afa5 (patch) | |
tree | b008847b0541036c5a351950b0c19421d82edf8d /commands | |
parent | f9163155d3cffc4cc994735b7ffbba5c561bb7a0 (diff) | |
download | hugo-275c0acbf6095adbe685f25e6cf250d91343afa5.tar.gz hugo-275c0acbf6095adbe685f25e6cf250d91343afa5.zip |
commands: Update CLI docs with the important -u flag in hugo mod get
Diffstat (limited to 'commands')
-rw-r--r-- | commands/mod.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/commands/mod.go b/commands/mod.go index 764e12d41..20b9d3960 100644 --- a/commands/mod.go +++ b/commands/mod.go @@ -211,7 +211,12 @@ Install a specific version: hugo mod get github.com/gohugoio/[email protected] -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 } |