hugo/testscripts/commands/config.txt
Rohan Hasabe 6b5e117a12 commands: Use consistent style when describing subcommands
Closes #12897

Change-Id: Ib27a4a7b540d45243e6252db769d4b9fb7447718
Signed-off-by: Rohan Hasabe <rohanhasabe8@gmail.com>
2024-10-15 08:51:53 +02:00

21 lines
413 B
Text

# Test the config command.
hugo config -h
stdout 'Display site configuration'
hugo config
stdout 'baseurl = .https://example.com/'
hugo config --format json
stdout '\"baseurl\": \"https://example.com/\",'
hugo config mounts -h
stdout 'Print the configured file mounts'
hugo config mounts
stdout '\"source\": \"content\",'
# Test files
-- hugo.toml --
baseURL="https://example.com/"
title="My New Hugo Site"