aboutsummaryrefslogtreecommitdiffhomepage
path: root/testscripts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-22 09:49:58 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-22 12:27:19 +0200
commit6ca8a40f25f911b5b9058b738182a1512aee8b57 (patch)
tree29412fd3cceca14e561a83309d2bc4cae387e9f1 /testscripts
parent2db7ec622fc9d666590dd33a3d48818be9772c2d (diff)
downloadhugo-6ca8a40f25f911b5b9058b738182a1512aee8b57.tar.gz
hugo-6ca8a40f25f911b5b9058b738182a1512aee8b57.zip
commands: Make all list commands list what 'all' did before
Also, always include the CSV header. Updates #10953
Diffstat (limited to 'testscripts')
-rw-r--r--testscripts/commands/list.txt35
1 files changed, 23 insertions, 12 deletions
diff --git a/testscripts/commands/list.txt b/testscripts/commands/list.txt
index 2e64389fa..42d74cec7 100644
--- a/testscripts/commands/list.txt
+++ b/testscripts/commands/list.txt
@@ -2,32 +2,43 @@
hugo list drafts
! stderr .
-stdout 'draft.md,2019-01-01T00:00:00Z'
-stdout 'draftexpired.md,2018-01-01T00:00:00Z'
-stdout 'draftfuture.md,2030-01-01T00:00:00Z'
+stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink'
+stdout 'content/draft.md,draft,The Draft,2019-01-01T00:00:00Z,2032-01-01T00:00:00Z,2018-01-01T00:00:00Z,true,https://example.org/draft/'
+stdout 'draftexpired.md'
+stdout 'draftfuture.md'
+! stdout '/expired.md'
hugo list future
-stdout 'future.md,2030-01-01T00:00:00Z'
-stdout 'draftfuture.md,2030-01-01T00:00:00Z'
+stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink'
+stdout 'future.md'
+stdout 'draftfuture.md'
+! stdout 'expired.md'
hugo list expired
-stdout 'expired.md,2018-01-01T00:00:00Z'
-stdout 'draftexpired.md,2018-01-01T00:00:00Z'
+stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink'
+stdout 'expired.md'
+stdout 'draftexpired.md'
+! stdout 'future.md'
hugo list all
-stdout 'future.md,2030-01-01T00:00:00Z'
-stdout 'draft.md,2019-01-01T00:00:00Z'
-stdout 'expired.md,2018-01-01T00:00:00Z'
-stdout 'draftexpired.md,2018-01-01T00:00:00Z'
-stdout 'draftfuture.md,2030-01-01T00:00:00Z'
+stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink'
+stdout 'future.md'
+stdout 'draft.md'
+stdout 'expired.md'
+stdout 'draftexpired.md'
+stdout 'draftfuture.md'
-- hugo.toml --
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term"]
-- content/draft.md --
---
+title: "The Draft"
+slug: "draft"
draft: true
date: 2019-01-01
+expiryDate: 2032-01-01
+publishDate: 2018-01-01
---
-- content/expired.md --
---