commands: Improve list command

- Improve help text
- Add "kind" and "section" to CSV output
- Add a "published" subcommand to list content that is not draft,
  expired, or future.

Closes #12520
This commit is contained in:
Joe Mooring 2024-05-19 08:31:19 -07:00 committed by Bjørn Erik Pedersen
parent 548dc21378
commit 931e096f21
2 changed files with 27 additions and 12 deletions

View file

@ -1,6 +1,6 @@
# Test the gen commands.
# Note that adding new commands will require updating the NUM_COMMANDS value.
env NUM_COMMANDS=42
env NUM_COMMANDS=43
hugo gen -h
stdout 'A collection of several useful generators\.'