hugo/commands
Bjørn Erik Pedersen 96689a5c31
commands: Make commands.Execute return a Response object
We have no global `Hugo` object no more (yay!), and there are some external tools that depends on that value.

These tools need to use get that value from `Response.Result`.

Note that `commands.Execute` now also takes the arguments as a string slice. This should also make it easier to use, not having to modify `os.Args`.

This commit also wraps up this particular issue. Phew!

Test coverage in /commands before: 14.4%
Now:  53.5%

Still work to do, now it is at least possible.

Closes #4598
2018-04-11 20:37:08 +02:00
..
benchmark.go
check.go
check_darwin.go
commandeer.go
commands.go commands: Make commands.Execute return a Response object 2018-04-11 20:37:08 +02:00
commands_test.go commands: Make commands.Execute return a Response object 2018-04-11 20:37:08 +02:00
config.go
convert.go
env.go
gen.go
genautocomplete.go
genchromastyles.go
gendoc.go
gendocshelper.go
genman.go
helpers.go
hugo.go commands: Make commands.Execute return a Response object 2018-04-11 20:37:08 +02:00
hugo_windows.go
import_jekyll.go
import_jekyll_test.go
limit_darwin.go
limit_others.go
list.go commands: Remove some TODOs 2018-04-11 10:16:30 +02:00
new.go commands: Remove some TODOs 2018-04-11 10:16:30 +02:00
new_content_test.go commands: Remove some TODOs 2018-04-11 10:16:30 +02:00
new_site.go
new_theme.go
release.go commands: Remove some TODOs 2018-04-11 10:16:30 +02:00
server.go commands: Remove some TODOs 2018-04-11 10:16:30 +02:00
server_test.go
static_syncer.go
version.go