1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00
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
..
2018-04-11 09:57:43 +02:00
2018-04-11 09:50:19 +02:00
2018-04-11 10:09:45 +02:00
2018-04-11 09:57:43 +02:00
2018-04-11 09:51:07 +02:00
2018-04-11 10:16:30 +02:00
2018-04-11 09:50:19 +02:00
2018-04-11 10:16:30 +02:00
2018-04-11 10:16:30 +02:00
2018-04-11 09:51:07 +02:00
2018-04-11 10:16:30 +02:00