diff options
author | Anton Harniakou <anton.harniakou@gmail.com> | 2019-01-13 12:44:38 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-01-13 20:13:59 +0000 |
commit | db3c49d049193e0fc225fe4bdb95712c311d6615 (patch) | |
tree | 6b888da6387d577a6ff9ccfc66935e79c42759d3 /commands/commands_test.go | |
parent | e3cb8e6c7874d7dfe1d4d1c7f5c9765b681fb647 (diff) |
Make hugo server -t work again
This commit solves an issue where hugo would ignore the cli -t flag
and only use a theme defined in config.toml.
Also allow -t flag to accept a string slice.
Closes #5569
Closes #5061
Related #4868
Diffstat (limited to 'commands/commands_test.go')
-rw-r--r-- | commands/commands_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/commands_test.go b/commands/commands_test.go index a8cc1d927..57c9d6005 100644 --- a/commands/commands_test.go +++ b/commands/commands_test.go @@ -104,7 +104,7 @@ func TestCommandsPersistentFlags(t *testing.T) { assert.Equal("/tmp/mydestination", cfg.GetString("publishDir")) assert.Equal("mycontent", cfg.GetString("contentDir")) assert.Equal("mylayouts", cfg.GetString("layoutDir")) - assert.Equal("mytheme", cfg.GetString("theme")) + assert.Equal([]string{"mytheme"}, cfg.GetStringSlice("theme")) assert.Equal("mythemes", cfg.GetString("themesDir")) assert.Equal("https://example.com/b/", cfg.GetString("baseURL")) |