mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03:00
commands: Fix the config command
It now also accepts the `-s` (source) flag. See #4598
This commit is contained in:
parent
24d5c21942
commit
f396cffa23
2 changed files with 5 additions and 1 deletions
|
@ -51,6 +51,7 @@ func TestCommands(t *testing.T) {
|
|||
// no args = hugo build
|
||||
{nil, []string{sourceFlag}, ""},
|
||||
{nil, []string{sourceFlag, "--renderToMemory"}, ""},
|
||||
{[]string{"config"}, []string{sourceFlag}, ""},
|
||||
{[]string{"benchmark"}, []string{sourceFlag, "-n=1"}, ""},
|
||||
{[]string{"convert", "toTOML"}, []string{sourceFlag, "-o=" + filepath.Join(dirOut, "toml")}, ""},
|
||||
{[]string{"convert", "toYAML"}, []string{sourceFlag, "-o=" + filepath.Join(dirOut, "yaml")}, ""},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue