Skip to content

Commit e41675b

Browse files
feat: make --browser folder the default (#34)
The folder-aware container listing is the friendlier first impression for the common 'npx jspod' case (new user wanting to see their pod). Keep --browser json available as the developer/debug view. Fixes #33
1 parent 9823da6 commit e41675b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ const options = {
4343
auth: true,
4444
open: true,
4545
git: true,
46-
// 'json' (default) = minimal JSON-LD pretty-print. 'folder' = friendlier
47-
// container listing (table + breadcrumb) that falls back to JSON-LD when
48-
// the resource isn't a container.
49-
browser: 'json'
46+
// 'folder' (default) = friendlier container listing (table + breadcrumb)
47+
// that falls back to JSON-LD when the resource isn't a container.
48+
// 'json' = minimal JSON-LD pretty-print (the developer view).
49+
browser: 'folder'
5050
};
5151

5252
// Auth-ladder rung-1 credentials. See issue #6: jspod ships a deliberately
@@ -150,7 +150,7 @@ for (let i = 0; i < args.length; i++) {
150150
console.log(chalk.green(' --no-auth') + chalk.dim(' Disable authentication'));
151151
console.log(chalk.green(' --no-open') + chalk.dim(' Do not open the browser automatically'));
152152
console.log(chalk.green(' --no-git') + chalk.dim(' Disable JSS\'s git HTTP backend (it is on by default)'));
153-
console.log(chalk.green(' --browser ') + chalk.yellow('<json|folder>') + chalk.dim(' Data browser style (default: json)'));
153+
console.log(chalk.green(' --browser ') + chalk.yellow('<folder|json>') + chalk.dim(' Data browser style (default: folder)'));
154154
console.log(chalk.green(' -v, --version') + chalk.dim(' Show jspod version'));
155155
console.log(chalk.green(' --help') + chalk.dim(' Show this help message\n'));
156156
console.log(chalk.white('Examples:'));

0 commit comments

Comments
 (0)