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 commands: Fix some flag diff 2018-04-11 09:57:43 +02:00
check.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
check_darwin.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
commandeer.go commands: Remove the Hugo global 2018-04-11 09:50:19 +02:00
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 commands: Fix the config command 2018-04-11 10:09:45 +02:00
convert.go commands: Fix some flag diff 2018-04-11 09:57:43 +02:00
env.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gen.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genautocomplete.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genchromastyles.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gendoc.go commands: Add basic server test 2018-04-11 09:51:07 +02:00
gendocshelper.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genman.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
helpers.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
hugo.go commands: Make commands.Execute return a Response object 2018-04-11 20:37:08 +02:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
import_jekyll.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
import_jekyll_test.go Only set 'url' if permalink in metadata and remove duplicate confirm msg 2018-01-28 11:24:31 +01:00
limit_darwin.go commands: Move the commands related logic to its own file 2018-04-11 09:50:19 +02:00
limit_others.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
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 commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
new_theme.go commands: Add CLI tests 2018-04-11 09:50:19 +02:00
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 commands: Add basic server test 2018-04-11 09:51:07 +02:00
static_syncer.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
version.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00