mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03:00
commands: Remove the Hugo global
There are still some cleaning to do, but that felt good. See #4598
This commit is contained in:
parent
73825cfc1c
commit
b110d0ae04
6 changed files with 41 additions and 34 deletions
|
@ -50,8 +50,7 @@ func TestCommands(t *testing.T) {
|
|||
{[]string{"version"}, nil, ""},
|
||||
// no args = hugo build
|
||||
{nil, []string{sourceFlag}, ""},
|
||||
// TODO(bep) cli refactor remove the HugoSites global and enable the below
|
||||
//{nil, []string{sourceFlag, "--renderToMemory"},false},
|
||||
{nil, []string{sourceFlag, "--renderToMemory"}, ""},
|
||||
{[]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