summaryrefslogtreecommitdiffstats
path: root/testscripts/commands/config.txt
blob: b1dba8d1173b167020b3cab4ee5b77deac48f3f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Test the config command.

hugo config -h
stdout 'Print the 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"