You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
short: "Experimental: Prepares and writes a composite package.json file for your project.",
52
+
short: "Experimental: Prepares and writes a composite package.json file for your project",
53
53
long: `Prepares and writes a composite package.json file for your project.
54
54
55
55
On first run it creates a "package.hugo.json" in the project root if not already there. This file will be used as a template file
56
-
with the base dependency set.
56
+
with the base dependency set.
57
57
58
58
This set will be merged with all "package.hugo.json" files found in the dependency tree, picking the version closest to the project.
59
59
@@ -80,12 +80,12 @@ so this may/will change in future versions of Hugo.
80
80
commands: []simplecobra.Commander{
81
81
&simpleCommand{
82
82
name: "init",
83
-
short: "Initialize this project as a Hugo Module.",
83
+
short: "Initialize this project as a Hugo Module",
84
84
long: `Initialize this project as a Hugo Module.
85
85
It will try to guess the module path, but you may help by passing it as an argument, e.g:
86
-
86
+
87
87
hugo mod init github.com/gohugoio/testshortcodes
88
-
88
+
89
89
Note that Hugo Modules supports multi-module projects, so you can initialize a Hugo Module
90
90
inside a subfolder on GitHub, as one example.
91
91
`,
@@ -111,7 +111,7 @@ so this may/will change in future versions of Hugo.
111
111
},
112
112
&simpleCommand{
113
113
name: "verify",
114
-
short: "Verify dependencies.",
114
+
short: "Verify dependencies",
115
115
long: `Verify checks that the dependencies of the current module, which are stored in a local downloaded source cache, have not been modified since being downloaded.`,
116
116
withc: func(cmd*cobra.Command, r*rootCommand) {
117
117
cmd.ValidArgsFunction=cobra.NoFileCompletions
@@ -129,7 +129,7 @@ so this may/will change in future versions of Hugo.
129
129
},
130
130
&simpleCommand{
131
131
name: "graph",
132
-
short: "Print a module dependency graph.",
132
+
short: "Print a module dependency graph",
133
133
long: `Print a module dependency graph with information about module status (disabled, vendored).
134
134
Note that for vendored modules, that is the version listed and not the one from go.mod.
135
135
`,
@@ -149,7 +149,7 @@ Note that for vendored modules, that is the version listed and not the one from
149
149
},
150
150
&simpleCommand{
151
151
name: "clean",
152
-
short: "Delete the Hugo Module cache for the current project.",
152
+
short: "Delete the Hugo Module cache for the current project",
153
153
long: `Delete the Hugo Module cache for the current project.`,
154
154
withc: func(cmd*cobra.Command, r*rootCommand) {
155
155
cmd.ValidArgsFunction=cobra.NoFileCompletions
@@ -175,7 +175,7 @@ Note that for vendored modules, that is the version listed and not the one from
175
175
},
176
176
&simpleCommand{
177
177
name: "tidy",
178
-
short: "Remove unused entries in go.mod and go.sum.",
178
+
short: "Remove unused entries in go.mod and go.sum",
179
179
withc: func(cmd*cobra.Command, r*rootCommand) {
180
180
cmd.ValidArgsFunction=cobra.NoFileCompletions
181
181
applyLocalFlagsBuildConfig(cmd, r)
@@ -190,7 +190,7 @@ Note that for vendored modules, that is the version listed and not the one from
190
190
},
191
191
&simpleCommand{
192
192
name: "vendor",
193
-
short: "Vendor all module dependencies into the _vendor directory.",
193
+
short: "Vendor all module dependencies into the _vendor directory",
194
194
long: `Vendor all module dependencies into the _vendor directory.
195
195
If a module is vendored, that is where Hugo will look for it's dependencies.
196
196
`,
@@ -209,16 +209,16 @@ Note that for vendored modules, that is the version listed and not the one from
209
209
210
210
&simpleCommand{
211
211
name: "get",
212
-
short: "Resolves dependencies in your current Hugo Project.",
212
+
short: "Resolves dependencies in your current Hugo project",
213
213
long: `
214
-
Resolves dependencies in your current Hugo Project.
214
+
Resolves dependencies in your current Hugo project.
215
215
216
216
Some examples:
217
217
218
218
Install the latest version possible for a given module:
219
219
220
220
hugo mod get github.com/gohugoio/testshortcodes
221
-
221
+
222
222
Install a specific version:
223
223
224
224
hugo mod get github.com/gohugoio/testshortcodes@v0.3.0
0 commit comments