commands: Create new 'hugo list all' command
authorRuslan Nasonov <rus.nasonov@gmail.com>
Sat, 4 May 2019 14:21:21 +0000 (21:21 +0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 24 May 2019 22:09:51 +0000 (00:09 +0200)
commit5b4b8bb3c1ecb30e7a38ed44eb795f1d972cd320
tree7c8bf6446788bff324e83137e3ec543fcc29aec9
parent2278b0eb02ccdd3c2d4358d39074767d33fecb71
commands: Create new 'hugo list all' command

New:
- command `hugo list all`, return all posts meta in csv format

Refactoring:
- move common parts in commands/list.go to function `buildSites`
- change way to detect path to content

See #5904
commands/list.go
commands/list_test.go [new file with mode: 0644]